summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.robertl/eb55.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb55.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
new file mode 100644
index 000000000..c1e2400ed
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
@@ -0,0 +1,12 @@
+// { dg-do assemble }
+// Since the constructor is in streambuf.h, additional diagnostics are
+// produced, which are not really supported in the old-deja framework
+
+#include <sstream>
+
+void
+t( char* buf )
+{
+ std::istrstream str = buf; //{ dg-error "" } inaccessible copy constructor
+}
+