☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-compare1.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-compare1.C
code
plain
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;