diff options
Diffstat (limited to 'test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp')
-rw-r--r-- | test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp b/test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp index 7747457..f9e0a5c 100644 --- a/test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp +++ b/test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp @@ -9,7 +9,7 @@ namespace __debug { template <class T> class vector { public: - explicit vector() {} // expected-warning{{should not be explicit}} + explicit vector() {} // expected-warning 2 {{should not be explicit}} }; } } @@ -19,5 +19,6 @@ public: #include __FILE__ struct { int a, b; std::__debug::vector<int> c; } e[] = { {1, 1} }; // expected-note{{used in initialization here}} - +// expected-warning@+1 {{expression with side effects has no effect in an unevaluated context}} +decltype(new std::__debug::vector<int>[1]{}) x; // expected-note{{used in initialization here}} #endif |