summaryrefslogtreecommitdiff
path: root/clang/test/Driver/objc-cpp-output.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/objc-cpp-output.m')
-rw-r--r--clang/test/Driver/objc-cpp-output.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/objc-cpp-output.m b/clang/test/Driver/objc-cpp-output.m
new file mode 100644
index 0000000..6d97483
--- /dev/null
+++ b/clang/test/Driver/objc-cpp-output.m
@@ -0,0 +1,7 @@
+// RUN: %clang -x objc-cpp-output -c %s -o /dev/null
+
+// Should compile without errors
+@protocol P
+- (void)m;
+@end
+void f() {}