diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Driver/objc++-cpp-output.mm | 8 | ||||
-rw-r--r-- | test/Driver/objc-cpp-output.m | 7 |
2 files changed, 15 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 {}; diff --git a/test/Driver/objc-cpp-output.m b/test/Driver/objc-cpp-output.m new file mode 100644 index 0000000000..6d974838c1 --- /dev/null +++ b/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() {} |