Commit cb4cfe5d by Neil Booth Committed by Neil Booth

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

From-SVN: r65812
parent 4e1f0f8e
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* gcc.dg/cpp/truefalse.cpp: New test. * gcc.dg/cpp/truefalse.cpp: New test.
* gcc.dg/cpp/cpp.exp: Update. * gcc.dg/cpp/cpp.exp: Update.
* g++.dg/other/stdbool-if.C: Remove.
2003-04-19 Neil Booth <neil@daikokuya.co.uk> 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
......
/* { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment