aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-07 15:56:25 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-07 15:56:25 +0000
commit581f5577e8e42d72faef571e0e15ddb5da661f5a (patch)
tree07d7b07d76cc43d3aab24bc3c2fca58dc0d12cac /unittests/Format/FormatTest.cpp
parent6a0ff179799c0dcbbd76b311923162e3be343f4b (diff)
Slightly expand the @ test to cover whitespace between @ and keyword.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 3a67e2dfa1..3c056cd994 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -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