summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/condexp.C
blob: be333657dc99959c25e9b8bc2b7a7ec35ba9589c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}