blob: 06db2bffdf6ea67880d79438ef850dd89a2f1463 [file] [log] [blame]
Kaelyn Takatae7d3dfd2015-01-20 20:15:29 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3int w = z.; // expected-error {{use of undeclared identifier 'z'}} \
4 // expected-error {{expected unqualified-id}}
5
6int x = { y[ // expected-error {{use of undeclared identifier 'y'}} \
7 // expected-note {{to match this '['}} \
8 // expected-note {{to match this '{'}} \
9 // expected-error {{expected ';' after top level declarator}}
10
11// The errors below all occur on the last line of the file, so splitting them
12// among multiple lines doesn't work.
13// expected-error {{expected expression}} expected-error {{expected ']'}} expected-error {{expected '}'}}