diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
| commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
| tree | 64ba909838c23261cace781ece27d106134ea451 /test/LLVMC/hello.cpp | |
Notes
Diffstat (limited to 'test/LLVMC/hello.cpp')
| -rw-r--r-- | test/LLVMC/hello.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/LLVMC/hello.cpp b/test/LLVMC/hello.cpp new file mode 100644 index 000000000000..27c89d66fa73 --- /dev/null +++ b/test/LLVMC/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'; +} |
