Skip to content

Commit 02c77a4

Browse files
committed
Added tests that demonstrate the issue with static inline c functions.
1 parent 29af567 commit 02c77a4

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
inline static int fun(int a)
2+
{
3+
return a+1;
4+
}
5+
6+
int main(int argc, char *argv[])
7+
{
8+
fun(5);
9+
return 0;
10+
}
11+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
8+
--
9+
^warning: ignoring
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
inline static int fun(int a)
2+
{
3+
return a+1;
4+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
main.c
3+
--function fun
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
8+
--
9+
^warning: ignoring

0 commit comments

Comments
 (0)