diff options
Diffstat (limited to 'llvm/test/LLVMC/C++/hello.cpp')
-rw-r--r-- | llvm/test/LLVMC/C++/hello.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/C++/hello.cpp b/llvm/test/LLVMC/C++/hello.cpp new file mode 100644 index 00000000000..27c89d66fa7 --- /dev/null +++ b/llvm/test/LLVMC/C++/hello.cpp @@ -0,0 +1,8 @@ +// Test that we can compile C++ code. +// RUN: llvmc %s -o %t +// RUN: ./%t | grep hello +#include <iostream> + +int main() { + std::cout << "hello" << '\n'; +} |