| 1 |
// { dg-require-effective-target c++11 } |
| 2 |
// { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } } |
| 3 |
|
| 4 |
#include <map> |
| 5 |
|
| 6 |
std::array<int, 10> a1; /* { dg-error "incomplete type" } */ |
| 7 |
/* { dg-message "'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'" "hint" { target *-*-* } .-1 } */ |
| 8 |
|
| 9 |
std::array<int, 10> a2 {5}; /* { dg-error "incomplete type" } */ |
| 10 |
/* { dg-message "'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'" "hint" { target *-*-* } .-1 } */ |
| 11 |
|