[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Sema / variadic-incomplete-arg-type.c
blobe4ad544607b03d848bf44462d41a49e7cddbf506
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
3 typedef struct __CFError * CFErrorRef; // expected-note {{forward declaration of 'struct __CFError'}}
5 void junk(int, ...);
7 int main(void)
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}}