aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/C++/together.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/C++/together.cpp')
-rw-r--r--test/LLVMC/C++/together.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/LLVMC/C++/together.cpp b/test/LLVMC/C++/together.cpp
new file mode 100644
index 0000000..f1320ca
--- /dev/null
+++ b/test/LLVMC/C++/together.cpp
@@ -0,0 +1,9 @@
+// Check that we can compile files of different types together.
+// RUN: llvmc %s %p/../test_data/together.c -o %t
+// RUN: ./%t | grep hello
+
+extern "C" void test();
+
+int main() {
+ test();
+}