diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-08 20:16:23 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-08 20:16:23 +0000 |
commit | 3a2673e2e93376da249fae8b4aa805a6118ddd4e (patch) | |
tree | 9a30aab4f55ffa3c379fac7b2c89b890a5cedb00 /unittests/Format/FormatTest.cpp | |
parent | 41748f7d3ae36db1b1c52eaaf76631ed60c79c53 (diff) |
Formatter: More tests for already-passing ObjC bits.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 339be71530..d280f1dc6c 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1170,7 +1170,11 @@ TEST_F(FormatTest, ObjCSnippets) { verifyFormat("@compatibility_alias AliasName ExistingClass;"); verifyFormat("@dynamic textColor;"); //verifyFormat("char *buf1 = @encode(int **);"); + verifyFormat("Protocol *proto = @protocol(p1);"); //verifyFormat("SEL s = @selector(foo:);"); + verifyFormat("@synchronized(self) {\n" + " f();\n" + "}"); verifyFormat("@synthesize dropArrowPosition = dropArrowPosition_;"); // FIXME: "getter=bar" should not be surround by spaces in @property. |