summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC/together.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 17:24:54 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 17:24:54 +0000
commit07597594b23fe6ff520baebde3f865aab4100bd0 (patch)
tree038df50a75a35d6a7fd4be0f638467f154b978dc /llvm/test/LLVMC/together.cpp
parentbaa0b592d01ac4b05a41cdd9622a600abb77f7b1 (diff)
downloadbcm5719-llvm-07597594b23fe6ff520baebde3f865aab4100bd0.tar.gz
bcm5719-llvm-07597594b23fe6ff520baebde3f865aab4100bd0.zip
First small tests for llvmc2.
llvm-svn: 50734
Diffstat (limited to 'llvm/test/LLVMC/together.cpp')
-rw-r--r--llvm/test/LLVMC/together.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/together.cpp b/llvm/test/LLVMC/together.cpp
new file mode 100644
index 00000000000..62ff821154d
--- /dev/null
+++ b/llvm/test/LLVMC/together.cpp
@@ -0,0 +1,10 @@
+// Check that we can compile files of different types together.
+// TOFIX: compiling files with same names should work.
+// RUN: llvmc2 %s %p/together1.c -o %t
+// RUN: ./%t | grep hello
+
+extern "C" void test();
+
+int main() {
+ test();
+}
OpenPOWER on IntegriCloud