diff options
author | Nico Weber <nicolasweber@gmx.de> | 2011-08-13 23:13:37 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2011-08-13 23:13:37 +0000 |
commit | ed8080cb9fb74978539b8d26a22449c7e3f6249b (patch) | |
tree | 5365e5b253a7eccf7ae6ea54270446a01a3fba90 /clang/test/Driver/objc++-cpp-output.mm | |
parent | 6858b344ed09792c606f1095a945bf02055d4ab3 (diff) | |
download | bcm5719-llvm-ed8080cb9fb74978539b8d26a22449c7e3f6249b.tar.gz bcm5719-llvm-ed8080cb9fb74978539b8d26a22449c7e3f6249b.zip |
Add support of -x objc-cpp-output, -x objc++-cpp-output to the Driver.
Matches gcc, and is also required for using ccache with clang.
llvm-svn: 137563
Diffstat (limited to 'clang/test/Driver/objc++-cpp-output.mm')
-rw-r--r-- | clang/test/Driver/objc++-cpp-output.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/objc++-cpp-output.mm b/clang/test/Driver/objc++-cpp-output.mm new file mode 100644 index 00000000000..bb8814428ac --- /dev/null +++ b/clang/test/Driver/objc++-cpp-output.mm @@ -0,0 +1,8 @@ +// RUN: %clang -x objc++-cpp-output -c %s -o /dev/null + +// Should compile without errors +@protocol P +- (void)m; +@end +void f() {} +class C {}; |