summaryrefslogtreecommitdiff
path: root/test/LLVMC/C++/just-compile.cpp
blob: 771c9822da69ec6f31121e0ebb88c5cf07f713dc (plain)
1
2
3
4
5
6
7
8
9
10
// Test that the -c flag works.
// RUN: llvmc -c %s -o %t.o
// RUN: llvmc --linker=c++ %t.o -o %t
// RUN: %abs_tmp | grep hello
// XFAIL: vg
#include <iostream>

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