aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Import/objc-arc/Inputs/cleanup-objects.m
blob: 9c18399259f9d08d486fa33b316951b2aeee1e1e (plain)
1
2
3
4
5
6
7
8
9
10
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;
}