tests for local variables
This commit is contained in:
committed by
Vasily Levchenko
parent
8de943bb8a
commit
4078e4004c
@@ -0,0 +1,10 @@
|
||||
extern void *resolve_symbol(const char*);
|
||||
|
||||
int
|
||||
run_test() {
|
||||
int (*local_variable)(int) = resolve_symbol("kfun:local_variable");
|
||||
|
||||
if (local_variable(3) != 14) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user