1 // RUN: %clang_cc1 -triple x86_64-pc-linux -Wno-unused-value -ast-dump=json %s | FileCheck %s
4 return __atomic_load_n(ptr
, __ATOMIC_SEQ_CST
);
7 // NOTE: CHECK lines have *not* been autogenerated by gen_ast_dump_json_test.py
8 // as its output is not portable for AtomicExpr across platforms. Instead rely
12 // CHECK-NOT: {{^}}Dumping
13 // CHECK: "kind": "AtomicExpr",
15 // CHECK: "qualType": "int"
17 // CHECK: "valueCategory": "prvalue",
18 // CHECK: "name": "__atomic_load_n",
21 // CHECK: "id": "0x{{.*}}",
22 // CHECK: "kind": "ImplicitCastExpr",
25 // CHECK: "qualType": "int *"
27 // CHECK: "valueCategory": "prvalue",
28 // CHECK: "castKind": "LValueToRValue",
31 // CHECK: "id": "0x{{.*}}",
32 // CHECK: "kind": "DeclRefExpr",
35 // CHECK: "qualType": "int *"
37 // CHECK: "valueCategory": "lvalue",
38 // CHECK: "referencedDecl": {
39 // CHECK: "id": "0x{{.*}}",
40 // CHECK: "kind": "ParmVarDecl",
41 // CHECK: "name": "ptr",
43 // CHECK: "qualType": "int *"
50 // CHECK: "id": "0x{{.*}}",
51 // CHECK: "kind": "IntegerLiteral",
54 // CHECK: "qualType": "int"
56 // CHECK: "valueCategory": "prvalue",
57 // CHECK: "value": "5"