diff options
Diffstat (limited to 'test/LLVMC/C++/dash-x.cpp')
-rw-r--r-- | test/LLVMC/C++/dash-x.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/LLVMC/C++/dash-x.cpp b/test/LLVMC/C++/dash-x.cpp index 437d8bbbe3..b32400e0b0 100644 --- a/test/LLVMC/C++/dash-x.cpp +++ b/test/LLVMC/C++/dash-x.cpp @@ -1,14 +1,9 @@ // Test that we can compile .c files as C++ and vice versa -// RUN: llvmc -x c++ %s -x c %p/../test_data/false.cpp -x lisp -x whatnot -x none %p/../test_data/false2.cpp -o %t +// 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 // RUN: %abs_tmp | grep hello -#include <iostream> - -extern "C" void test(); -extern std::string test2(); +extern int test_main(); int main() { - std::cout << "h"; - test(); - std::cout << test2() << '\n'; + test_main(); } |