diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/static-member-init-1.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/static-member-init-1.C b/gcc/testsuite/g++.dg/cpp0x/static-member-init-1.C index e64e77f..c79aaff 100644 --- a/gcc/testsuite/g++.dg/cpp0x/static-member-init-1.C +++ b/gcc/testsuite/g++.dg/cpp0x/static-member-init-1.C @@ -1,5 +1,10 @@ // { dg-do compile { target c++11 } } +// { dg-options "-pedantic" } struct S { static constexpr const void* x = &x; + + template <typename> static inline const void* y = &y<int>; + // { dg-warning "variable templates only available with" "" { target c++11_down } .-1 } + // { dg-warning "inline variables are only available with" "" { target c++14_down } .-2 } }; |