Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-compare1.C
blob: 603c6d5b2e6eb940652dae84a907ec24daaf6830 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fdelete-null-pointer-checks" }
extern
int
a
,
b
;
static_assert
(&
a
==
&
a
,
""
);
static_assert
(&
a
!=
&
b
,
""
);
constexpr
bool
c
=
&
a
==
&
a
;
constexpr
bool
d
=
&
a
!=
&
b
;