* g++.dg/other/stdbool-if.C: Remove.

From-SVN: r65812
This commit is contained in:
Neil Booth 2003-04-19 10:40:06 +00:00 committed by Neil Booth
parent 4e1f0f8e1f
commit cb4cfe5dc1
2 changed files with 1 additions and 33 deletions

View File

@ -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>

View File

@ -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