summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/template28.C
blob: 6c56d4555b116980a12532f6618f1be2ea68898a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// GROUPS passed templates
class X {
        const char *fptr;
public:
        X(const char *ptr) { fptr = ptr; }
        operator const char*() { return fptr; }
};

int main(){
        X x1("1234");
        X x2(x1+1);
}