aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Import/objc-arc/test-cleanup-object.m
blob: 2ee777573a1e033c4c5bb6ed1cc37fc7d4c15f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
// RUN: clang-import-test -x objective-c -objc-arc -import %S/Inputs/cleanup-objects.m -dump-ast -expression %s | FileCheck %s

// CHECK: FunctionDecl {{.*}} getObj '
// CHECK: ExprWithCleanups
// CHECK-NEXT: cleanup CompoundLiteralExpr

extern int getObj();
void test(int c, id a) {
  (void)getObj(c, a);
}