parent
03e557992a
commit
7b8b849817
3 changed files with 12 additions and 0 deletions
@ -0,0 +1,3 @@ |
||||
project('mixed C and C++', 'c', 'c++') |
||||
exe = executable('prog', 'main.cc', 'func.c') |
||||
add_test('mixtest', exe) |
@ -0,0 +1,4 @@ |
||||
int func() { |
||||
int class = 0; |
||||
return class; |
||||
} |
@ -0,0 +1,5 @@ |
||||
extern "C" int func(); |
||||
|
||||
int main(int argc, char **argv) { |
||||
return func(); |
||||
} |
Loading…
Reference in new issue