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 |
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 |