diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
commit | 01af97d3b23bded2b2b21af19bbc6e4cce49e5b3 (patch) | |
tree | 64a10f4c4154739d4a8191d7e1b52ce497f4ebd6 /test/Sema/incomplete-call.c | |
parent | c3b054d250cdca485c71845089c316e10610ebad (diff) |
Diffstat (limited to 'test/Sema/incomplete-call.c')
-rw-r--r-- | test/Sema/incomplete-call.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/incomplete-call.c b/test/Sema/incomplete-call.c index 3ef578d59f6f2..d34bda54986c8 100644 --- a/test/Sema/incomplete-call.c +++ b/test/Sema/incomplete-call.c @@ -6,8 +6,8 @@ struct foo a(); // expected-note {{'a' declared here}} void b(struct foo); void c(); -void func() { +void func(void *p) { a(); // expected-error{{calling 'a' with incomplete return type 'struct foo'}} - b(*(struct foo*)0); // expected-error{{argument type 'struct foo' is incomplete}} - c(*(struct foo*)0); // expected-error{{argument type 'struct foo' is incomplete}} + b(*(struct foo*)p); // expected-error{{argument type 'struct foo' is incomplete}} + c(*(struct foo*)p); // expected-error{{argument type 'struct foo' is incomplete}} } |