diff options
Diffstat (limited to 'test/CodeGenCXX/inline-dllexport-member.cpp')
-rw-r--r-- | test/CodeGenCXX/inline-dllexport-member.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/inline-dllexport-member.cpp b/test/CodeGenCXX/inline-dllexport-member.cpp new file mode 100644 index 0000000..af9a536 --- /dev/null +++ b/test/CodeGenCXX/inline-dllexport-member.cpp @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -triple i686-windows-gnu -fms-compatibility -g -emit-llvm %s -o - \ +// RUN: | FileCheck %s + +struct __declspec(dllexport) s { + static const unsigned int ui = 0; +}; + +// CHECK: ![[SCOPE:[0-9]+]] = !DICompileUnit( +// CHECK: !DIGlobalVariable(name: "ui", linkageName: "_ZN1s2uiE", scope: ![[SCOPE]], +// CHECK-SAME: variable: i32* @_ZN1s2uiE + |