diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-11-08 03:25:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-11-08 03:25:47 +0000 |
commit | 06ad209fb1fc995bae9dfe74706e03b8632a1a1b (patch) | |
tree | 8eff3e8a836bc7ade4982a902af2c92edc630c01 /llvm/test | |
parent | 813a6408219c6cbf721d71a690d38af3dd6e8e53 (diff) | |
download | bcm5719-llvm-06ad209fb1fc995bae9dfe74706e03b8632a1a1b.tar.gz bcm5719-llvm-06ad209fb1fc995bae9dfe74706e03b8632a1a1b.zip |
Add LLVMC2 tool definitions for Objective-C and Objective-C++.
llvm-svn: 58885
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/LLVMC/hello.m | 12 | ||||
-rw-r--r-- | llvm/test/LLVMC/hello.mm | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/hello.m b/llvm/test/LLVMC/hello.m new file mode 100644 index 00000000000..bf917bcdea7 --- /dev/null +++ b/llvm/test/LLVMC/hello.m @@ -0,0 +1,12 @@ +/* + * Check that we can compile helloworld + * RUN: llvmc2 %s -o %t + * RUN: ./%t | grep hello + */ + +#include <stdio.h> + +int main() { + printf("hello\n"); + return 0; +} diff --git a/llvm/test/LLVMC/hello.mm b/llvm/test/LLVMC/hello.mm new file mode 100644 index 00000000000..5f14a94ccca --- /dev/null +++ b/llvm/test/LLVMC/hello.mm @@ -0,0 +1,8 @@ +// Test that we can compile Objective-C++ code. +// RUN: llvmc2 %s -o %t +// RUN: ./%t | grep hello +#include <iostream> + +int main() { + std::cout << "hello" << '\n'; +} |