1 // RUN: %clang_cc1 -fsyntax-only -std=c99 -pedantic-errors %s
2 // RUN: %clang_cc1 -fsyntax-only -std=c99 -emit-pch -o %t %s
3 // RUN: %clang_cc1 -fsyntax-only -std=c99 -pedantic-errors -include-pch %t %s
5 // RUN: %clang_cc1 -fsyntax-only -std=c99 -pedantic-errors -DINCLUDED %s -verify
6 // This last one should warn for -Wempty-translation-unit (C99 6.9p1).
10 // empty except for the prefix header
20 #include "empty-with-headers.c"
21 // empty except for the header
25 // This should only fire if the header is not included,
26 // either explicitly or as a prefix header.
27 // expected-error{{ISO C requires a translation unit to contain at least one declaration}}