summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/cond3.C
blob: da052d453fb18ad9e8a18adcae1a9d7ed20ad529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/9537

class String
{
public:
    String();
    String( char *str );
    operator char *();
};

const String operator+( String s1, String )
{
  return s1;
}

String valGlue(const String before)
{
    String ret;
    return false ? ret : before + before;
}