Skip to content

Commit d8c6441

Browse files
committed
Add regression test for interaction of volatile/non-volatile variables
1 parent 47ad91a commit d8c6441

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <assert.h>
2+
3+
volatile int x;
4+
int y;
5+
6+
void main()
7+
{
8+
y = x;
9+
assert(x == y);
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
test.c
3+
--nondet-volatile
4+
^\[main.assertion.1\] line \d+ assertion x == y: FAILURE$
5+
^EXIT=10$
6+
^SIGNAL=0$
7+
--
8+
--
9+
Check interaction between a volatile and a non-volatile variable

0 commit comments

Comments
 (0)