Skip to content

Commit 1eb529f

Browse files
author
Daniel Kroening
committed
test C++/C mixture
1 parent 3b8d1d5 commit 1eb529f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

regression/cpp/ModeC3/cpp_file.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extern "C" int some_function(int param)
2+
{
3+
return param+1;
4+
}

regression/cpp/ModeC3/main_c.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <assert.h>
2+
3+
int some_function(int);
4+
5+
int main()
6+
{
7+
int return_value=some_function(2);
8+
assert(return_value==3);
9+
}

regression/cpp/ModeC3/test.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main_c.c
3+
cpp_file.cpp
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
^CONVERSION ERROR$

0 commit comments

Comments
 (0)