mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
llvmc: Add a test for the -c flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84760885e1
commit
900152bf88
10
test/LLVMC/C++/just-compile.cpp
Normal file
10
test/LLVMC/C++/just-compile.cpp
Normal file
@ -0,0 +1,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';
|
||||
}
|
Loading…
Reference in New Issue
Block a user