Fariborz Jahanian | e853bb3 | 2012-03-01 23:42:00 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
| 2 | // rdar://10961370 |
| 3 | |
| 4 | typedef struct __CFError * CFErrorRef; // expected-note {{forward declaration of 'struct __CFError'}} |
| 5 | |
| 6 | void junk(int, ...); |
| 7 | |
| 8 | int main() |
| 9 | { |
| 10 | CFErrorRef error; |
Fariborz Jahanian | a0e005b | 2012-03-02 17:05:03 +0000 | [diff] [blame] | 11 | junk(1, *error, (void)0); // expected-error {{argument type 'struct __CFError' is incomplete}} \ |
| 12 | // expected-error {{argument type 'void' is incomplete}} |
Fariborz Jahanian | e853bb3 | 2012-03-01 23:42:00 +0000 | [diff] [blame] | 13 | } |