1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -x objective-c -fobjc-arc -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
7 id TestCompoundLiteral(id a) {
8 return ((S){ .f = a }).f;
11 // CHECK: "kind": "ExprWithCleanups",
12 // CHECK-NEXT: "range": {
13 // CHECK-NEXT: "begin": {
14 // CHECK-NEXT: "offset": {{[0-9]+}},
15 // CHECK-NEXT: "col": 10,
16 // CHECK-NEXT: "tokLen": 1
18 // CHECK-NEXT: "end": {
19 // CHECK-NEXT: "offset": {{[0-9]+}},
20 // CHECK-NEXT: "col": 26,
21 // CHECK-NEXT: "tokLen": 1
24 // CHECK-NEXT: "type": {
25 // CHECK-NEXT: "desugaredQualType": "id",
26 // CHECK-NEXT: "qualType": "id",
27 // CHECK-NEXT: "typeAliasDeclId": "0x{{.*}}"
29 // CHECK-NEXT: "valueCategory": "prvalue",
30 // CHECK-NEXT: "cleanupsHaveSideEffects": true,
31 // CHECK-NEXT: "cleanups": [
33 // CHECK-NEXT: "id": "0x{{.*}}",
34 // CHECK-NEXT: "kind": "CompoundLiteralExpr"