// S : tags error min c segv $TAGS // S : expect --result error --location-comment ERROR // S : expect --trace dereference // S : cc -o test.bc $CC_OPT $file // S : verify $V_OPT test.bc #include int *test() { int x = 3; return &x; } int main() { int *x = test(); assert( *x == 3 ); /* ERROR */ return 0; }