[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / variadic-incomplete-arg-type.c
blobd62a37412a9e4662619701189f83b18952ab8f1d
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 // rdar://10961370
4 typedef struct __CFError * CFErrorRef; // expected-note {{forward declaration of 'struct __CFError'}}
6 void junk(int, ...);
8 int main(void)
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}}