Files
mercury/tests/misc_tests/mdemangle_test.exp
Tyson Dowd 399f7a8375 Update the demangler test case to use type_ctor_* rather than
Estimated hours taken: 0.2

tests/misc_tests/mdemangle_test.inp:
tests/misc_tests/mdemangle_test.exp:
	Update the demangler test case to use type_ctor_* rather than
	base_type_*.
1999-03-22 08:09:33 +00:00

133 lines
4.7 KiB
Plaintext

A collection of symbols for use in testing mdemangle.
Each symbol is followed by the correct decoding.
a common block
<shared constant number 21 for module mercury_builtin>
<shared constant number 21 for module mercury_builtin>
a type ctor info
<type_ctor_info for type 'mercury_builtin:list'/1>
<type_ctor_info for type 'mercury_builtin:list'/1>
a type ctor layout
<type_ctor_layout for type 'mercury_builtin:term__context'/0>
<type_ctor_layout for type 'mercury_builtin:term__context'/0>
a type ctor functors
<type_ctor_functors for type 'eliza:message'/0>
<type_ctor_functors for type 'eliza:message'/0>
an unqualified type ctor info
<type_ctor_info for type 'int'/0>
<type_ctor_info for type 'int'/0>
an unqualified type ctor layout
<type_ctor_layout for type 'float'/0>
<type_ctor_layout for type 'float'/0>
a mangled name
<predicate '!'/0 mode 0>
<predicate '!'/0 mode 0>
a compare predicate
<compare/3 predicate for type 'mercury_builtin:comparison_result'/0>
<compare/3 predicate for type 'mercury_builtin:comparison_result'/0>
an index predicate
<index/2 predicate for type 'mercury_builtin:list'/1>
<index/2 predicate for type 'mercury_builtin:list'/1>
a unify predicate
<unification predicate for type 'mercury_builtin:term'/0 mode 0>
<unification predicate for type 'mercury_builtin:term'/0 mode 0>
a normal predicate
<predicate 'copy'/2 mode 1>
<predicate 'copy'/2 mode 1>
a function
<function 'copy'/2 mode 1>
<function 'copy'/2 mode 1>
an internal label
<predicate 'copy'/2 mode 1 label 5>
<predicate 'copy'/2 mode 1 label 5>
unused args
<predicate 'copy'/2 mode 1 (minus unused args)>
<predicate 'copy'/2 mode 1 (minus unused args)>
unused args
<predicate 'copy'/2 mode 1 (minus unused args)>
<predicate 'copy'/2 mode 1 (minus unused args)>
higher order specialization
<predicate 'copy'/2 mode 1 (specialized)>
<predicate 'copy'/2 mode 1 (specialized)>
higher order specialization (regression test for 1 char pred names)
<predicate 'c'/2 mode 1 (specialized)>
<predicate 'c'/2 mode 1 (specialized)>
higher order specialization and unused args
<predicate 'copy'/2 mode 1 (specialized) (minus unused args)>
<predicate 'copy'/2 mode 1 (specialized) (minus unused args)>
mangled name with unused args
<predicate '!'/2 mode 0 (minus unused args)>
<predicate '!'/2 mode 0 (minus unused args)>
some tests of symbols that should not be demangled
(this is a regression test: previous versions of mdemangle
seg faulted for this case)
mercury_data_foo
mercury_data_foo
some lambda goals
<pred goal (#9) from 'simplex' in module 'lp' line 262 label 5>
<pred goal (#9) from 'simplex' in module 'lp' line 262 label 5>
<func goal (#4) from 'collect_vars' in module 'lp' line 153>
<func goal (#4) from 'collect_vars' in module 'lp' line 153>
procedures introduced by deforestation
<deforestation procedure (#9) from 'simplex' in module 'lp' line 262 label 5>
<deforestation procedure (#9) from 'simplex' in module 'lp' line 262 label 5>
<deforestation procedure (#4) from 'collect_vars' in module 'lp' line 153>
<deforestation procedure (#4) from 'collect_vars' in module 'lp' line 153>
A realistic test
ml -s asm_fast.gc.tr --no-demangle -o interpreter interpreter_init.o \
interpreter.o -lcfloat_lib
Undefined first referenced
symbol in file
<predicate 'tr_store:get_mutvar'/4 mode 0> interpreter.o
<index/2 predicate for type 'store:mutvar'/2> interpreter.o
<compare/3 predicate for type 'store:mutvar'/2> interpreter.o
<predicate 'std_util:unsorted_aggregate'/4 mode 5> interpreter.o
<type_ctor_info for type 'store:some_store_type'/0> interpreter.o
<unification predicate for type 'store:mutvar'/2 mode 0> interpreter.o
<predicate 'tr_store:new_mutvar'/4 mode 0> interpreter.o
<predicate 'tr_store:set_mutvar'/4 mode 0> interpreter.o
<type_ctor_info for type 'store:mutvar'/2> interpreter.o
ld: fatal: Symbol referencing errors. No output written to interpreter
gmake: *** [interpreter] Error 1
A realistic test
ml -s asm_fast.gc.tr --no-demangle -o interpreter interpreter_init.o \
interpreter.o -lcfloat_lib
Undefined first referenced
symbol in file
<predicate 'tr_store:get_mutvar'/4 mode 0> interpreter.o
<index/2 predicate for type 'store:mutvar'/2> interpreter.o
<compare/3 predicate for type 'store:mutvar'/2> interpreter.o
<predicate 'std_util:unsorted_aggregate'/4 mode 5> interpreter.o
<type_ctor_info for type 'store:some_store_type'/0> interpreter.o
<unification predicate for type 'store:mutvar'/2 mode 0> interpreter.o
<predicate 'tr_store:new_mutvar'/4 mode 0> interpreter.o
<predicate 'tr_store:set_mutvar'/4 mode 0> interpreter.o
<type_ctor_info for type 'store:mutvar'/2> interpreter.o
ld: fatal: Symbol referencing errors. No output written to interpreter
gmake: *** [interpreter] Error 1