summaryrefslogtreecommitdiff
path: root/test/LLVMC/hello.cpp
blob: a3148c3c164f1facaf6cc2ab5bcf34547a67d486 (plain)
1
2
3
4
5
6
7
8
// Test that we can compile C++ code.
// RUN: llvmc2 %s -o %t
// RUN: ./%t | grep hello
#include <iostream>

int main() {
    std::cout << "hello" << '\n';
}