diff options
Diffstat (limited to 'test/LLVMC/together.cpp')
-rw-r--r-- | test/LLVMC/together.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/LLVMC/together.cpp b/test/LLVMC/together.cpp new file mode 100644 index 0000000000000..b07250e9d0b3e --- /dev/null +++ b/test/LLVMC/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(); +} |