[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / inline-dllexport-member.cpp
blobd6b004d66dc6cbdeb7f31964e309d8b6fbc4e53a
1 // RUN: %clang_cc1 -triple i686-windows-win32 -fms-extensions -debug-info-kind=limited -emit-llvm %s -o - \
2 // RUN: | FileCheck %s
4 // CHECK: @"?ui@s@@2IB" = weak_odr dso_local dllexport constant i32 0, comdat, align 4, !dbg [[UI:![0-9]+]]
6 struct __declspec(dllexport) s {
7 static const unsigned int ui = 0;
8 };
10 // CHECK: [[UI]] = !DIGlobalVariableExpression(var: [[UIV:.*]], expr: !DIExpression())
11 // CHECK: [[UIV]] = distinct !DIGlobalVariable(name: "ui", linkageName: "?ui@s@@2IB", scope: ![[SCOPE:[0-9]+]],
12 // CHECK: ![[SCOPE]] = distinct !DICompileUnit(