summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/parse-ambig5.C
blob: 9be2f9258faa5d66a2cd197b761d3ddeb2860163 (plain)
1
2
3
4
5
6
7
8
// PR c++/41786
// { dg-options -std=c++0x }

struct A { A(int, char const*); };
int main() {
  int i = 0, *b = &i;
  A a(int(b[i]), "hello");
}