From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/SemaObjC/method-bad-param.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/SemaObjC/method-bad-param.m') 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 + -- cgit v1.1