aboutsummaryrefslogblamecommitdiff
path: root/test/SemaCXX/PR21679.cpp
blob: 06db2bffdf6ea67880d79438ef850dd89a2f1463 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                         
// RUN: %clang_cc1 -fsyntax-only -verify %s

int w = z.;  // expected-error {{use of undeclared identifier 'z'}} \
             // expected-error {{expected unqualified-id}}

int x = { y[  // expected-error {{use of undeclared identifier 'y'}} \
              // expected-note {{to match this '['}} \
              // expected-note {{to match this '{'}} \
              // expected-error {{expected ';' after top level declarator}}

// The errors below all occur on the last line of the file, so splitting them
// among multiple lines doesn't work.
// expected-error {{expected expression}} expected-error {{expected ']'}} expected-error {{expected '}'}}