7d4cf19fa41d1202a26ce4c16fd09f68835bd975
[oota-llvm.git] / test / LLVMC / C++ / dash-x.cpp
1 // Test that we can compile .c files as C++ and vice versa
2 // RUN: llvmc %s -x c++ %p/../test_data/false.c -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t
3 // RUN: %abs_tmp | grep hello
4 // XFAIL: vg
5
6 extern int test_main();
7
8 int main() {
9   test_main();
10 }