gcc/testsuite/g++.dg/cpp0x/static-member-init-1.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-pedantic" } |
| 3 | |
| 4 | struct S { |
| 5 | static constexpr const void* x = &x; |
| 6 | |
| 7 | template <typename> static inline const void* y = &y<int>; |
| 8 | // { dg-warning "variable templates only available with" "" { target c++11_down } .-1 } |
| 9 | // { dg-warning "inline variables are only available with" "" { target c++14_down } .-2 } |
| 10 | }; |