aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/constexpr-compare1.C
blob: d40d5363b288739b140cdf29a5d77ef207a63a81 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile { target c++17 } }
// { dg-additional-options "-fdelete-null-pointer-checks" }

inline int a = 0;
inline int b = 0;
static_assert (&a == &a);
static_assert (&a != &b);
constexpr bool c = &a == &a;
constexpr bool d = &a != &b;