Skip to content

Commit acac776

Browse files
committed
Add a test for the same-named static functions crashing dependence graph in the goto-analyser
1 parent 05f46a9 commit acac776

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extern int s1;
2+
static void sub(void)
3+
{
4+
if (s1) {
5+
}
6+
}
7+
8+
void f1(void)
9+
{
10+
sub();
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extern int s2;
2+
static void sub(void)
3+
{
4+
if (s2) {
5+
}
6+
}
7+
8+
void f2(void)
9+
{
10+
sub();
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
void f1(void);
2+
void f2(void);
3+
4+
void main(void)
5+
{
6+
f1();
7+
f2();
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
main.c
3+
file1.c file2.c --dependence-graph --show
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
Assertion .+ failed
8+
--
9+

0 commit comments

Comments
 (0)