diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 17:24:54 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 17:24:54 +0000 |
| commit | 07597594b23fe6ff520baebde3f865aab4100bd0 (patch) | |
| tree | 038df50a75a35d6a7fd4be0f638467f154b978dc /llvm/test/LLVMC/together.cpp | |
| parent | baa0b592d01ac4b05a41cdd9622a600abb77f7b1 (diff) | |
| download | bcm5719-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.cpp | 10 |
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(); +} |

