Add a test where a single exe has both C and C++ sources.

pull/15/head
Jussi Pakkanen 12 years ago
parent 03e557992a
commit 7b8b849817
  1. 3
      test cases/7 mixed/builder.txt
  2. 4
      test cases/7 mixed/func.c
  3. 5
      test cases/7 mixed/main.cc

@ -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…
Cancel
Save