Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/spellcheck-stdbool.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 /* { dg-options "-std=c99" } */ | |
2 /* Missing <stdbool.h>. */ | |
3 | |
4 bool b; /* { dg-error "unknown type name 'bool'" } */ | |
5 /* { dg-message "'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?" "" { target *-*-* } .-1 } */ | |
6 | |
7 int test_true (void) | |
8 { | |
9 return true; /* { dg-error "'true' undeclared" } */ | |
10 /* { dg-message "'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?" "" { target *-*-* } .-1 } */ | |
11 } | |
12 | |
13 int test_false (void) | |
14 { | |
15 return false; /* { dg-error "'false' undeclared" } */ | |
16 /* { dg-message "'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?" "" { target *-*-* } .-1 } */ | |
17 } |