backend/tests: update resolved symbol names
according to new mangling scheme
This commit is contained in:
@@ -2,7 +2,7 @@ extern void *resolve_symbol(const char*);
|
||||
|
||||
int
|
||||
run_test() {
|
||||
int (*cycle)(int) = resolve_symbol("kfun:cycle");
|
||||
int (*cycle)(int) = resolve_symbol("kfun:cycle(Int)");
|
||||
|
||||
if (cycle(1) != 2) return 1;
|
||||
if (cycle(0) != 1) return 1;
|
||||
|
||||
@@ -2,7 +2,7 @@ extern void *resolve_symbol(const char*);
|
||||
|
||||
int
|
||||
run_test() {
|
||||
int (*cycle_do)(int) = resolve_symbol("kfun:cycle_do");
|
||||
int (*cycle_do)(int) = resolve_symbol("kfun:cycle_do(Int)");
|
||||
|
||||
if (cycle_do(3) != 5) return 1;
|
||||
if (cycle_do(0) != 3) return 1;
|
||||
|
||||
Reference in New Issue
Block a user