diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2013-01-18 05:11:47 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-18 05:11:47 +0000 |
| commit | e3025672e9b59cfb5e13886fa05507f824017685 (patch) | |
| tree | 57265ad4260a3965114c198491141e69676e0486 | |
| parent | 2ea22b0b84a8ba2f83abe7fc488255728aecdcf4 (diff) | |
| download | bcm5719-llvm-e3025672e9b59cfb5e13886fa05507f824017685.tar.gz bcm5719-llvm-e3025672e9b59cfb5e13886fa05507f824017685.zip | |
Formatter: Enable @encode test.
This doesn't work right with pointers to pointers, but that's likely just a
dupe of PR14884.
llvm-svn: 172785
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index a762068ce9e..c3fef1d4015 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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:);"); |

