bolt/deps/llvm-18.1.8/clang/test/Import/objc-arc/test-cleanup-object.m
2025-02-14 19:21:04 +01:00

12 lines
374 B
Objective-C

// 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);
}