Skip to content

Commit 39c26fb

Browse files
author
Daniel Kroening
authored
Merge pull request #718 from NlightNFotis/bugdemo/static_inline
Added tests that demonstrate the issue with static inline c functions.
2 parents 55b5b7e + 02c77a4 commit 39c26fb

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)