summaryrefslogtreecommitdiffstats
path: root/test/Parser/objc-quirks.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/objc-quirks.m')
-rw-r--r--test/Parser/objc-quirks.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Parser/objc-quirks.m b/test/Parser/objc-quirks.m
index b6671d1..591bca2 100644
--- a/test/Parser/objc-quirks.m
+++ b/test/Parser/objc-quirks.m
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
// FIXME: This is a horrible error message here. Fix.
int @"s" = 5; // expected-error {{prefix attribute must be}}
@@ -6,7 +6,9 @@ int @"s" = 5; // expected-error {{prefix attribute must be}}
// rdar://6480479
@interface A
-}; // expected-error {{missing @end}} expected-error {{expected external declaration}}
+}; // expected-error {{missing @end}} \
+// expected-error {{expected external declaration}} \
+// expected-warning{{extra ';' outside of a function}}
@@ -26,3 +28,5 @@ int @"s" = 5; // expected-error {{prefix attribute must be}}
[(super) a]; // expected-error {{use of undeclared identifier 'super'}}
}
@end
+
+@compatibility_alias A3 A2;
OpenPOWER on IntegriCloud