Home | History | Annotate | Download | only in Sema
      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;
     11  junk(1, *error, (void)0); // expected-error {{argument type 'struct __CFError' is incomplete}} \
     12                            // expected-error {{argument type 'void' is incomplete}}
     13 }
     14