Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / pr9812.c
blob14bc6c810e86415f4f01d22f6640f822fefaea3a
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 #define bool _Bool
4 int main(int argc, char** argv)
6 bool signed; // expected-error {{'bool' cannot be signed or unsigned}} expected-warning {{declaration does not declare anything}}
8 return 0;
10 #undef bool
12 typedef int bool;
14 int test2(int argc, char** argv)
16 bool signed; // expected-error {{'type-name' cannot be signed or unsigned}} expected-warning {{declaration does not declare anything}}
17 _Bool signed; // expected-error {{'_Bool' cannot be signed or unsigned}} expected-warning {{declaration does not declare anything}}
19 return 0;