mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 17:56:06 +00:00

Conversion was performed using https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 plus manual (but uninteresting) fixups.
11 lines
606 B
C++
11 lines
606 B
C++
// RUN: %clang_cc1 %std_cxx98-14 -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefixes=CHECK,PRE17
|
|
// RUN: %clang_cc1 %std_cxx17- -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefixes=CHECK,CXX17
|
|
|
|
const int __declspec(dllexport) &Exported = 42;
|
|
|
|
// The reference temporary shouldn't be dllexport, even if the reference is.
|
|
// PRE17: @"?$RT1@Exported@@3ABHB" = internal constant i32 42
|
|
// CXX17: @"?$RT1@Exported@@3ABHB" = internal global i32 42
|
|
|
|
// CHECK: @"?Exported@@3ABHB" = dso_local dllexport constant ptr @"?$RT1@Exported@@3ABHB"
|