Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjCXX / block-cleanup.mm
blob53b2c224ab5e01a434539184e3f3b1d83d0c432d
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\r
2 \r
3 // CHECK:      -FunctionDecl {{.*}} test 'id ()'\r
4 // CHECK-NEXT:   -CompoundStmt\r
5 // CHECK-NEXT:     -ReturnStmt\r
6 // CHECK-NEXT:       -ExprWithCleanups\r
7 // CHECK-NEXT:         -cleanup Block\r
8 // CHECK-NEXT:         -cleanup Block\r
9 \r
10 @interface NSDictionary\r
11 + (id)dictionaryWithObjects:(const id [])objects forKeys:(const id [])keys count:(unsigned long)cnt;\r
12 @end\r
14 id test() {\r
15   return @{@"a": [](){}, @"b": [](){}};\r
16 }\r