gcc/testsuite/g++.old-deja/g++.robertl/eb21.C
raw| 1 | // { dg-do run } |
| 2 | // { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } |
| 3 | #include <vector> |
| 4 | |
| 5 | #include <sstream> |
| 6 | |
| 7 | using namespace std; |
| 8 | |
| 9 | /*----------------------------------------*/ |
| 10 | |
| 11 | struct connection_t { |
| 12 | connection_t() {} |
| 13 | }; |
| 14 | |
| 15 | std::vector<connection_t> connections; |
| 16 | |
| 17 | /*----------------------------------------*/ |
| 18 | |
| 19 | int |
| 20 | main() { |
| 21 | ostringstream str; |
| 22 | |
| 23 | connections.insert(connections.end(), connection_t()); |
| 24 | |
| 25 | return 0; |
| 26 | } |