blob: 3de0d3585d2916ec426ea5d56394fc7d9fae00e4 [file] [log] [blame]
Victor Leschuk0df190372016-10-31 19:09:47 +00001// RUN: %clang -g -c -std=c11 -S -emit-llvm -o - %s | FileCheck %s
2
Adrian Prantl5f4740d2016-12-20 02:10:02 +00003// 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)
Victor Leschuk0df190372016-10-31 19:09:47 +00008_Atomic const int i;