2016-11-01 03:09:47 +08:00
|
|
|
// RUN: %clang -g -c -std=c11 -S -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
2016-12-20 10:10:02 +08:00
|
|
|
// CHECK: !DIGlobalVariable(name: "i"
|
|
|
|
// CHECK-SAME: type: ![[T:.*]], isLocal: false, isDefinition: true)
|
|
|
|
// CHECK: ![[T]] = !DIDerivedType(tag: DW_TAG_const_type, baseType: ![[BT:.*]])
|
|
|
|
// CHECK: ![[BT]] = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: ![[BTT:.*]])
|
|
|
|
// CHECK: ![[BTT]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
2016-11-01 03:09:47 +08:00
|
|
|
_Atomic const int i;
|