1 // RUN: %clang_cc1 %std_cxx98-14 -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefixes=CHECK,PRE17 2 // RUN: %clang_cc1 %std_cxx17- -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefixes=CHECK,CXX17 3 4 const int __declspec(dllexport) &Exported = 42; 5 6 // The reference temporary shouldn't be dllexport, even if the reference is. 7 // PRE17: @"?$RT1@Exported@@3ABHB" = internal constant i32 42 8 // CXX17: @"?$RT1@Exported@@3ABHB" = internal global i32 42 9 10 // CHECK: @"?Exported@@3ABHB" = dso_local dllexport constant ptr @"?$RT1@Exported@@3ABHB" 11