summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/pr29234.C
blob: d2dc735f226bf16e2955c584c6ba4f0d4310f148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/29234

struct S { void operator()(); };

void foo ()
{
  ( S()() );
}

struct C { void operator[](C); };

void bar ()
{
  C x;
  ( C()[x] );
}
OpenPOWER on IntegriCloud