Skip to content

Commit e24f784

Browse files
author
Daniel Kroening
committed
test for function pointer removal
1 parent 3ede81b commit e24f784

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void (*my_ptr)();
2+
3+
void my_f()
4+
{
5+
asm("mfence");
6+
my_ptr=my_f;
7+
}
8+
9+
int main()
10+
{
11+
void (*nondet)();
12+
nondet();
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--unwind 1
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)