diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-11-09 20:38:00 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-11-09 20:38:00 +0000 |
commit | df81c2c6ce37f4ae3c45dd01093b6274fa0b6692 (patch) | |
tree | 70ac79353bf0f84adc941312e715d1c0dad7dc70 /test/Parser/missing-end-3.m | |
parent | 7d64271b162eaf5cae264ff64465b28af623dc17 (diff) |
Issues good diagnostic when @end is missing.
// rdar://8283484
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/missing-end-3.m')
-rw-r--r-- | test/Parser/missing-end-3.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Parser/missing-end-3.m b/test/Parser/missing-end-3.m new file mode 100644 index 0000000000..3b226376dc --- /dev/null +++ b/test/Parser/missing-end-3.m @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// rdar://8283484 +@interface blah { + @private +} +// since I forgot the @end here it should say something + +@interface blah // expected-error {{missing @end}} +@end // and Unknown type name 'end' here + |