1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/LLVMC/hello.cpp

9 lines
171 B
C++
Raw Normal View History

// Test that we can compile C++ code.
// RUN: llvmc2 --linker=c++ %s -o %t
// RUN: ./%t | grep hello
#include <iostream>
int main() {
std::cout << "hello" << '\n';
}