From 0ed792020f625533ce3129c0cafb9c48afb81b9e Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 6 May 2008 18:11:21 +0000 Subject: Add two (currently failing) tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50752 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/LLVMC/false.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/LLVMC/false.c (limited to 'test/LLVMC/false.c') diff --git a/test/LLVMC/false.c b/test/LLVMC/false.c new file mode 100644 index 0000000..80e9e03 --- /dev/null +++ b/test/LLVMC/false.c @@ -0,0 +1,14 @@ +// Test that we can compile .c files as C++ and vice versa +// RUN: llvmc2 -x c++ %s -x c %p/false.cpp -x lisp -x whatnot -x none %p/false2.cpp -o %t +// RUN: ./%t | grep hello + +#include + +extern "C" void test(); +extern std::string test2(); + +int main() { + std::cout << "h"; + test(); + std::cout << test2() << '\n'; +} -- cgit v1.1