Slightly expand the @ test to cover whitespace between @ and keyword.

llvm-svn: 171751
This commit is contained in:
Nico Weber 2013-01-07 15:56:25 +00:00
parent 0c340a96aa
commit 12d5babba0
1 changed files with 6 additions and 1 deletions

View File

@ -1021,9 +1021,14 @@ TEST_F(FormatTest, FormatForObjectiveCMethodDecls) {
"outRange8:(NSRange) out_range8 outRange9:(NSRange) out_range9;"));
}
TEST_F(FormatTest, DoNotDropAt) {
TEST_F(FormatTest, ObjCAt) {
verifyFormat("@interface");
verifyFormat("@dynamic");
EXPECT_EQ("@interface", format("@ interface"));
// The precise formatting of this doesn't matter, nobody writes code like
// this.
verifyFormat("@ /*foo*/ interface");
}
} // end namespace tooling