gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-skip-if "requires hosted libstdc++ for sstream" { ! hostedlib } } |
| 3 | // Since the constructor is in streambuf.h, additional diagnostics are |
| 4 | // produced, which are not really supported in the old-deja framework |
| 5 | |
| 6 | #include <sstream> |
| 7 | |
| 8 | void |
| 9 | t( char* buf ) |
| 10 | { |
| 11 | std::istrstream str = buf; //{ dg-error "" } inaccessible copy constructor |
| 12 | } |
| 13 |