Formatter: Add a test for @selector in an ObjC method expression, which happens to work already.

llvm-svn: 172335
This commit is contained in:
Nico Weber 2013-01-12 23:41:33 +00:00
parent 92c0539135
commit 5c8709bc5e
1 changed files with 1 additions and 0 deletions

View File

@ -1532,6 +1532,7 @@ TEST_F(FormatTest, FormatObjCMethodExpr) {
verifyFormat("[self stuffWithInt:a ? [self foo:bar] : c];");
verifyFormat("[self stuffWithInt:a ? (e ? f : g) : c];");
verifyFormat("[cond ? obj1 : obj2 methodWithParam:param]");
verifyFormat("[button setAction:@selector(zoomOut:)];");
verifyFormat("arr[[self indexForFoo:a]];");
verifyFormat("throw [self errorFor:a];");