[TableGen] Fix validateOperandClass for non Phyical Reg (#118146)
[llvm-project.git] / clang / test / PCH / empty-with-headers.c
blob18f0266cef5275df05a3787ac882910c3b922cb2
1 // RUN: %clang_cc1 -fsyntax-only -std=c99 -pedantic-errors %s
2 // RUN: %clang_cc1 -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).
8 #if defined(INCLUDED)
10 // empty except for the prefix header
12 #elif defined(HEADER)
14 typedef int my_int;
15 #define INCLUDED
17 #else
19 #define HEADER
20 #include "empty-with-headers.c"
21 // empty except for the header
23 #endif
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}}