summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/invalid-code.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/invalid-code.m')
-rw-r--r--test/SemaObjC/invalid-code.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaObjC/invalid-code.m b/test/SemaObjC/invalid-code.m
index 2f297cf..7a642fb 100644
--- a/test/SemaObjC/invalid-code.m
+++ b/test/SemaObjC/invalid-code.m
@@ -12,3 +12,10 @@ void test1() {
__PRETTY_FUNCTION__; // expected-warning{{expression result unused}}
}
@end
+
+// <rdar://problem/7881045>
+// This previously triggered a crash because a ';' was expected after the @throw statement.
+void foo() {
+ @throw (id)0 // expected-error{{expected ';' after @throw}}
+}
+
OpenPOWER on IntegriCloud