aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-18 05:11:47 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-18 05:11:47 +0000
commit5dfe9b47a5d52b97ba6452d40edb7ea0e04c4435 (patch)
tree7863c493f5ac4426415133e4da546d335336b67a /unittests/Format/FormatTest.cpp
parentd3b036efdf0bf4ec216c701183a4b990cd041cd6 (diff)
Formatter: Enable @encode test.
This doesn't work right with pointers to pointers, but that's likely just a dupe of PR14884. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index a762068ce9..c3fef1d401 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1860,13 +1860,15 @@ TEST_F(FormatTest, ObjCAt) {
}
TEST_F(FormatTest, ObjCSnippets) {
- // FIXME: Make the uncommented lines below pass.
verifyFormat("@autoreleasepool {\n"
" foo();\n"
"}");
verifyFormat("@class Foo, Bar;");
verifyFormat("@compatibility_alias AliasName ExistingClass;");
verifyFormat("@dynamic textColor;");
+ verifyFormat("char *buf1 = @encode(int *);");
+ verifyFormat("char *buf1 = @encode(typeof(4 * 5));");
+ // FIXME: Enable once PR14884 is fixed:
//verifyFormat("char *buf1 = @encode(int **);");
verifyFormat("Protocol *proto = @protocol(p1);");
verifyFormat("SEL s = @selector(foo:);");