Files
mercury/tests/general/hlc_name_mangling.exp
Ian MacLarty 90e997af6f Fix a bug in the hlc grades where generated C function names were not
Estimated hours taken: 1
Branches: main

Fix a bug in the hlc grades where generated C function names were not
being mangled correctly.  The generated function names contained the
Mercury module name verbatim, which meant that if the Mercury module name
wasn't a valid C identifier, then the generated C code would be invalid.

compiler/mlds_to_c.m:
	Mangle function names in generated high level C code.

tests/general/Mmakefile:
tests/general/hlc_name_mangling-helper-module.m:
tests/general/hlc_name_mangling.exp:
tests/general/hlc_name_mangling.m:
	Add a regression test.
2006-11-14 04:10:23 +00:00

2 lines
4 B
Plaintext