diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 01:36:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 01:36:19 +0000 |
commit | 7262bafe985c686633079e3a019ab3b85f15a610 (patch) | |
tree | 76335978c016b44c081282a7748909f580df75a2 /test/LLVMC/dash-x.cpp | |
parent | 2a52122b304045e73a4a174259ffcde772e33040 (diff) |
Simplify LLVMC tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC/dash-x.cpp')
-rw-r--r-- | test/LLVMC/dash-x.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/LLVMC/dash-x.cpp b/test/LLVMC/dash-x.cpp new file mode 100644 index 0000000000..eb2883d699 --- /dev/null +++ b/test/LLVMC/dash-x.cpp @@ -0,0 +1,14 @@ +// 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: ./%t | grep hello + +#include <iostream> + +extern "C" void test(); +extern std::string test2(); + +int main() { + std::cout << "h"; + test(); + std::cout << test2() << '\n'; +} |