llvm-project/clang/test/Modules/Inputs/objcAtKeywordMissingEnd.h
Alex Lorenz d47546612d [Lexer] Ensure that the token is not an annotation token when
retrieving the identifer info for an Objective-C keyword

This commit fixes an assertion that's triggered in getIdentifier when the token
is an annotation token.

rdar://32225463

llvm-svn: 303246
2017-05-17 11:08:36 +00:00

4 lines
165 B
Objective-C

@interface MissingEnd // expected-note {{class started here}}
@ // expected-error {{expected an Objective-C directive after '@'}} expected-error {{missing '@end'}}