summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/condexp.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/condexp.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/condexp.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/condexp.C b/gcc/testsuite/g++.old-deja/g++.jason/condexp.C
new file mode 100644
index 000000000..be333657d
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/condexp.C
@@ -0,0 +1,14 @@
+// { dg-do assemble }
+// PRMS id: 5629
+
+struct String { const char *x; };
+class Pathname: public String { };
+
+String
+f(int i)
+{
+ Pathname p;
+ String s;
+
+ return i ? p: s;
+}