gcc/testsuite/g++.dg/cpp0x/initlist25.C
raw| 1 | // PR c++/41754 |
| 2 | // { dg-do run { target c++11 } } |
| 3 | // { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } } |
| 4 | |
| 5 | #include <map> |
| 6 | #include <string> |
| 7 | #include <iostream> |
| 8 | |
| 9 | using namespace std; |
| 10 | |
| 11 | int main() |
| 12 | { |
| 13 | map<string, string> m; |
| 14 | m.insert({{"t", "t"}, {"y", "y"}}); |
| 15 | |
| 16 | return 0; |
| 17 | } |