aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/condexp.C
blob: edfd12ef1a995be7f58221f122816340a5be1200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PRMS id: 5629
// Build don't link:

struct String { const char *x; };
class Pathname: public String { };

String
f(int i)
{
    Pathname p;
    String s;

    return i ? p: s;
}