diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-04-19 10:40:06 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-04-19 10:40:06 +0000 |
commit | cb4cfe5dc1c120fc6090d5896fd7de9e49a47618 (patch) | |
tree | 823bc1e3faf691cc8b28f4f3f70007d0aaedf3e6 /gcc | |
parent | 4e1f0f8e1fee97fc492f6204c02447a29673a954 (diff) | |
download | gcc-cb4cfe5dc1c120fc6090d5896fd7de9e49a47618.zip gcc-cb4cfe5dc1c120fc6090d5896fd7de9e49a47618.tar.gz gcc-cb4cfe5dc1c120fc6090d5896fd7de9e49a47618.tar.bz2 |
* g++.dg/other/stdbool-if.C: Remove.
From-SVN: r65812
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/stdbool-if.C | 33 |
2 files changed, 1 insertions, 33 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0eae036..524363f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,7 @@ * gcc.dg/cpp/truefalse.cpp: New test. * gcc.dg/cpp/cpp.exp: Update. + * g++.dg/other/stdbool-if.C: Remove. 2003-04-19 Neil Booth <neil@daikokuya.co.uk> diff --git a/gcc/testsuite/g++.dg/other/stdbool-if.C b/gcc/testsuite/g++.dg/other/stdbool-if.C deleted file mode 100644 index e9800bf..0000000 --- a/gcc/testsuite/g++.dg/other/stdbool-if.C +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options -pedantic } */ - -/* test of 'true' and 'false' in #if. this is accepted with a pedwarn - before stdbool.h is included, silently afterward. */ - -/* Make sure they're viable keywords. */ -bool a = true; -bool b = false; - -#if true /* { dg-warning "true" "true in #if pedwarn" } */ -#else -#error true is false /* { dg-bogus "true" "true is false" } */ -#endif - -#if false /* { dg-warning "false" "false in #if pedwarn" } */ -#error false is true /* { dg-bogus "false" "false is true" } */ -#endif - -#include <stdbool.h> - -/* Must still be viable keywords. */ -bool c = true; -bool d = false; - -#if true /* { dg-bogus "true" "true in #if with stdbool.h" } */ -#else -#error true is false /* { dg-bogus "true" "true is false" } */ -#endif - -#if false /* { dg-bogus "false" "false in #if with stdbool.h" } */ -#error false is true /* { dg-bogus "false" "false is true" } */ -#endif |