summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/expr1.C
blob: 701e5a28aeb4e531739e840e5184752a65f9b0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// Bug: g++ doesn't figure out what to do.

struct A {
  operator char *();
};
 
char foo(A a)
{
  char c = a[0];			// { dg-bogus "" } 
  return c;
}