2015-10-08 14:31:22 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-windows-win32 -fms-extensions -debug-info-kind=limited -emit-llvm %s -o - \
|
2015-02-28 08:13:13 +08:00
|
|
|
// RUN: | FileCheck %s
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: @"?ui@s@@2IB" = weak_odr dso_local dllexport constant i32 0, comdat, align 4, !dbg [[UI:![0-9]+]]
|
2016-09-13 09:13:19 +08:00
|
|
|
|
2015-02-28 08:13:13 +08:00
|
|
|
struct __declspec(dllexport) s {
|
|
|
|
static const unsigned int ui = 0;
|
|
|
|
};
|
|
|
|
|
2017-08-31 02:22:23 +08:00
|
|
|
// CHECK: [[UI]] = !DIGlobalVariableExpression(var: [[UIV:.*]], expr: !DIExpression())
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: [[UIV]] = distinct !DIGlobalVariable(name: "ui", linkageName: "?ui@s@@2IB", scope: ![[SCOPE:[0-9]+]],
|
2016-09-13 09:13:19 +08:00
|
|
|
// CHECK: ![[SCOPE]] = distinct !DICompileUnit(
|
2015-02-28 08:13:13 +08:00
|
|
|
|