llvm-for-llvmta/tools/clang/test/Import/objc-arc/test-cleanup-object.m

11 lines
288 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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
void test(int c, id a) {
(void)getObj(c, a);
}