Files
clang-p2996/clang/test/Parser/missing-end.m
Douglas Gregor 00a0cf70d9 Don't consume tokens past the end-of-file in an @interface. Fixes
<rdar://problem/7735566>.

llvm-svn: 98613
2010-03-16 06:04:47 +00:00

8 lines
166 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
@interface AAA
{
}
@ x// expected-error{{expected an Objective-C directive after '@'}}
// expected-error{{missing @end}}