aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/objc++-cpp-output.mm
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2011-08-13 23:13:37 +0000
committerNico Weber <nicolasweber@gmx.de>2011-08-13 23:13:37 +0000
commitcc52a0688f46cd04dd6b4670b304cbe82e3018c0 (patch)
tree0865314c7116c6fc1888097ab167d3c5d35d2072 /test/Driver/objc++-cpp-output.mm
parent1f7957d63ccbb9c14f852eb127144d27c40f7e8f (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/objc++-cpp-output.mm')
-rw-r--r--test/Driver/objc++-cpp-output.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/objc++-cpp-output.mm b/test/Driver/objc++-cpp-output.mm
new file mode 100644
index 0000000000..bb8814428a
--- /dev/null
+++ b/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 {};