xref: /llvm-project/clang/test/CodeGen/debug-info-atomic.c (revision 5f4740d3e52b7726543b0104677e5fd02b7e5d61)
1 // RUN: %clang -g -c -std=c11 -S -emit-llvm -o - %s | FileCheck %s
2 
3 // CHECK: !DIGlobalVariable(name: "i"
4 // CHECK-SAME: type: ![[T:.*]], isLocal: false, isDefinition: true)
5 // CHECK: ![[T]] = !DIDerivedType(tag: DW_TAG_const_type, baseType: ![[BT:.*]])
6 // CHECK: ![[BT]] = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: ![[BTT:.*]])
7 // CHECK: ![[BTT]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
8 _Atomic const int i;
9