1// RUN: %clang_cc1 -triple x86_64-apple-macosx10.11.0 -std=gnu++11 -o /dev/null -x objective-c++ -fblocks -ast-dump %s 2>&1 | FileCheck %s
2
3// CHECK:      -FunctionDecl {{.*}} test 'id ()'
4// CHECK-NEXT:   -CompoundStmt
5// CHECK-NEXT:     -ReturnStmt
6// CHECK-NEXT:       -ExprWithCleanups
7// CHECK-NEXT:         -cleanup Block
8// CHECK-NEXT:         -cleanup Block
9
10@interface NSDictionary
11+ (id)dictionaryWithObjects:(const id [])objects forKeys:(const id [])keys count:(unsigned long)cnt;
12@end
13
14id test() {
15  return @{@"a": [](){}, @"b": [](){}};
16}
17