Skip to content

Commit 3485100

Browse files
committed
Add test for special function lval
1 parent 9c808c9 commit 3485100

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Making sure special function lval is not invalidated recursively
2+
#include <goblint.h>
3+
4+
extern int * anIntPlease();
5+
int main() {
6+
int x = 0;
7+
int *p = &x;
8+
p = anIntPlease();
9+
10+
__goblint_check(x == 0);
11+
12+
return 0;
13+
}

0 commit comments

Comments
 (0)