xref: /llvm-project/clang/test/Import/objc-arc/test-cleanup-object.m (revision 7793e676514bc102e97a993e90257e8628069a8b)
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
8extern int getObj();
9void test(int c, id a) {
10  (void)getObj(c, a);
11}
12
13