blob: a3c0f9a0aec041ab792610268ffcabcd7dcce62f [file] [log] [blame]
// { dg-options "-D_GLIBCXX_USE_DEPRECATED=0 -Wdeprecated" }
// { dg-do preprocess { target c++11 } }
// { dg-bogus "deprecated" "C++17 deprecated <cstdbool> but not <stdbool.h>" }
#include <stdbool.h>
#ifndef __bool_true_false_are_defined
# error "The header <stdbool.h> fails to define a macro named __bool_true_false_are_defined"
#endif
#ifdef bool
# error "The header <stdbool.h> defines a macro named bool"
#endif
#ifdef true
# error "The header <stdbool.h> defines a macro named true"
#endif
#ifdef false
# error "The header <stdbool.h> defines a macro named false"
#endif