gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C
raw| 1 | /* PR middle-end/97595 - bogus -Wstringop-overflow due to DECL_SIZE_UNIT |
| 2 | underreporting field size |
| 3 | { dg-do compile { target c++11 } } |
| 4 | { dg-options "-O2 -Wall -Wsystem-headers" } |
| 5 | { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } */ |
| 6 | |
| 7 | #include <iostream> |
| 8 | |
| 9 | template void std::basic_iostream<char>::swap (basic_iostream&); |