implement aliases for div/idiv that have an explicit A register operand,
[oota-llvm.git] / test / LLVMC / C++ / dash-x.cpp
index 437d8bbbe3b2d3643e3fe6e3196e232dffb05230..7d4cf19fa41d1202a26ce4c16fd09f68835bd975 100644 (file)
@@ -1,14 +1,10 @@
 // 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
+// XFAIL: vg
 
-#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();
 }