summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/overload10.C
blob: f4652790a85261e99b9e9ad3dd72082714f916a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// Origin: Jason Merrill <jason@cygnus.com>

  const char *pc;
  enum A { x } a;
  int i;

  int main()
  {
     return i ? *pc : a;
  }