blob: 2b5dd1ab9d4865effe6a0fa2097c5fe1fb361bfc [file] [log] [blame]
Fariborz Jahaniane853bb32012-03-01 23:42:00 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify
2// rdar://10961370
3
4typedef struct __CFError * CFErrorRef; // expected-note {{forward declaration of 'struct __CFError'}}
5
6void junk(int, ...);
7
8int main()
9{
10 CFErrorRef error;
Fariborz Jahaniana0e005b2012-03-02 17:05:03 +000011 junk(1, *error, (void)0); // expected-error {{argument type 'struct __CFError' is incomplete}} \
12 // expected-error {{argument type 'void' is incomplete}}
Fariborz Jahaniane853bb32012-03-01 23:42:00 +000013}