Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist54.C

raw
1 // PR c++/49355
2 // { dg-do compile { target c++11 } }
3 // { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
4
5 #include <string>
6
7 struct T {
8 std::string foobar;
9 };
10
11 int main()
12 {
13 T* x = new T({""});
14 }