1 // { dg-do compile { target c++11 } }
2 // Example taken from dcl.attr.grammar:
8 /* Here, the '[[' should have introduced an attribute, on a
9 lambda invocation an array subscripting expression. */
10 int(p[[x] { return x; }()]); // { dg-error "expected|consecutive" }
11 /* Likewise, the '[[gnu::' is invalid here. */
12 y[[] { return 2; }()] = 2; // { dg-error "expected|consecutive" }