brintos

brintos / llvm-project-archived public Read only

0
0
Text · 391 B · e4ad544 Raw
13 lines · c
1// RUN: %clang_cc1 %s -fsyntax-only -verify 2 3typedef struct __CFError * CFErrorRef; // expected-note {{forward declaration of 'struct __CFError'}}4 5void junk(int, ...);6 7int main(void)8{9 CFErrorRef error;10 junk(1, *error, (void)0); // expected-error {{argument type 'struct __CFError' is incomplete}} \11                           // expected-error {{argument type 'void' is incomplete}}12}13