mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 14:28:54 -04:00

The test case is based on the reduction from PR21679 and has to be freestanding to work correctly, since some of the expected errors (and some of the problems that were fixed) only occur when the end of the file is reached. llvm-svn: 226603
14 lines
655 B
C++
14 lines
655 B
C++
// 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 '}'}}
|