clang/test/Import/objc-arc/test-cleanup-object.m
raw| 1 | // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} |
| 2 | // RUN: clang-import-test -x objective-c -objc-arc -import %S/Inputs/cleanup-objects.m -dump-ast -expression %s | FileCheck %s |
| 3 | |
| 4 | // CHECK: FunctionDecl {{.*}} getObj ' |
| 5 | // CHECK: ExprWithCleanups |
| 6 | // CHECK-NEXT: cleanup CompoundLiteralExpr |
| 7 | |
| 8 | extern int getObj(); |
| 9 | void test(int c, id a) { |
| 10 | (void)getObj(c, a); |
| 11 | } |
| 12 |