teak-llvm/clang/test/Parser/annotation-token-in-lexed-body.cpp
David Majnemer a8f2f1da99 Parse: Don't assume tokens have a length
Don't crash if the last token in a bad inline method body is an
annotation token.

llvm-svn: 232694
2015-03-19 00:10:23 +00:00

6 lines
259 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
struct S { // expected-note{{to match this}}
void f() { // expected-note{{to match this}}
// expected-error@+1{{expected '}'}} expected-error@+1{{expected '}'}} expected-error@+1{{expected ';'}}
#pragma pack()