blob: 14bc6c810e86415f4f01d22f6640f822fefaea3a [file] [log] [blame]
Erik Verbruggen888d52a2014-01-15 09:15:43 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3#define bool _Bool
Benjamin Kramere4812142015-03-12 14:28:38 +00004int main(int argc, char** argv)
Erik Verbruggen888d52a2014-01-15 09:15:43 +00005{
6 bool signed; // expected-error {{'bool' cannot be signed or unsigned}} expected-warning {{declaration does not declare anything}}
7
8 return 0;
9}
10#undef bool
11
12typedef int bool;
13
14int test2(int argc, char** argv)
15{
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}}
18
19 return 0;
20}
21