diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
| commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
| tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/CXX/basic/basic.def/p2.cpp | |
| parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) | |
Notes
Diffstat (limited to 'test/CXX/basic/basic.def/p2.cpp')
| -rw-r--r-- | test/CXX/basic/basic.def/p2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CXX/basic/basic.def/p2.cpp b/test/CXX/basic/basic.def/p2.cpp new file mode 100644 index 000000000000..598a79a8a3d7 --- /dev/null +++ b/test/CXX/basic/basic.def/p2.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -std=c++1z -verify %s -Wdeprecated + +namespace { + struct A { + static constexpr int n = 0; + }; + const int A::n; // expected-warning {{deprecated}} +} |
