summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/method-bad-param.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/method-bad-param.m')
-rw-r--r--test/SemaObjC/method-bad-param.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaObjC/method-bad-param.m b/test/SemaObjC/method-bad-param.m
index 324ed342..388e447 100644
--- a/test/SemaObjC/method-bad-param.m
+++ b/test/SemaObjC/method-bad-param.m
@@ -28,3 +28,17 @@ void f0(foo *a0) {
extern void g0(int x, ...);
g0(1, *(foo*)0); // expected-error {{cannot pass object with interface type 'foo' by-value through variadic function}}
}
+
+// rdar://8421082
+enum bogus; // expected-note {{forward declaration of 'enum bogus'}}
+
+@interface fee {
+}
+- (void)crashMe:(enum bogus)p;
+@end
+
+@implementation fee
+- (void)crashMe:(enum bogus)p { // expected-error {{variable has incomplete type 'enum bogus'}}
+}
+@end
+
OpenPOWER on IntegriCloud