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