Skip to content

Commit 59e974e

Browse files
committed
Regression test for goto-instrument --stack-depth
1 parent 63df38b commit 59e974e

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--stack-depth 1
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
VERIFICATION FAILED
7+
--
8+
^warning: ignoring
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
int bar(int x)
2+
{
3+
return 42;
4+
}
5+
6+
int foo(int x)
7+
{
8+
return bar(x);
9+
}
10+
11+
int main(int argc, char* argv[])
12+
{
13+
return foo(argc);
14+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
--stack-depth 2
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
VERIFICATION SUCCESSFUL
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)