diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:11:21 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:11:21 +0000 |
commit | 7f417b08cf87b240b19c9845c20fac688ac00fd7 (patch) | |
tree | 452bd5aec8c0f0e6615896ceeae5a29d0c5df4e9 /llvm/test/LLVMC/false.c | |
parent | 8bcc1bd3d51cd3df2e75a06eb9851ef3b31b844a (diff) | |
download | bcm5719-llvm-7f417b08cf87b240b19c9845c20fac688ac00fd7.tar.gz bcm5719-llvm-7f417b08cf87b240b19c9845c20fac688ac00fd7.zip |
Add two (currently failing) tests.
llvm-svn: 50752
Diffstat (limited to 'llvm/test/LLVMC/false.c')
-rw-r--r-- | llvm/test/LLVMC/false.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/false.c b/llvm/test/LLVMC/false.c new file mode 100644 index 00000000000..80e9e03b543 --- /dev/null +++ b/llvm/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 <iostream> + +extern "C" void test(); +extern std::string test2(); + +int main() { + std::cout << "h"; + test(); + std::cout << test2() << '\n'; +} |