Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-compare1.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options "-fdelete-null-pointer-checks" }
3
4 extern int a, b;
5 static_assert (&a == &a, "");
6 static_assert (&a != &b, "");
7 constexpr bool c = &a == &a;
8 constexpr bool d = &a != &b;