llvm-for-llvmta/tools/clang/test/Import/objc-arc/Inputs/cleanup-objects.m
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

11 lines
248 B
Objective-C

typedef struct {
id x;
} S;
id getObj(int c, id a) {
// Commenting out the following line because AST importer crashes when trying
// to import a BlockExpr.
// return c ? ^{ return a; }() : ((S){ .x = a }).x;
return ((S){ .x = a }).x;
}