brintos

brintos / llvm-project-archived public Read only

0
0
Text · 655 B · 06db2bf Raw
14 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 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 them12// among multiple lines doesn't work.13// expected-error {{expected expression}} expected-error {{expected ']'}} expected-error {{expected '}'}}14