summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/operators8.C
blob: 72891887540895deb558eefc6190df2f1865d026 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// GROUPS passed operators
struct A {
  char *p;
  operator char *();
};

char foo(A a)
{
  return a[0];
}