| 1 |
// RUN: %clang_cc1 -std=c++1z -verify %s -Wdeprecated |
| 2 |
|
| 3 |
namespace { |
| 4 |
struct A { |
| 5 |
static constexpr int n = 0; |
| 6 |
}; |
| 7 |
const int A::n; // expected-warning {{deprecated}} |
| 8 |
|
| 9 |
struct B { |
| 10 |
static constexpr int m = 0; |
| 11 |
}; |
| 12 |
constexpr int B::m; // expected-warning {{deprecated}} |
| 13 |
} |