1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 int w = z.;  // expected-error {{use of undeclared identifier 'z'}} \
4              // expected-error {{expected unqualified-id}}
5 
6 int 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 '}'}}
14