1*3512721dSNikita Popov // RUN: %clang_cc1 %std_cxx98-14 -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefixes=CHECK,PRE17 2*3512721dSNikita Popov // RUN: %clang_cc1 %std_cxx17- -emit-llvm %s -o - -triple=i386-pc-win32 -fms-extensions | FileCheck %s --check-prefixes=CHECK,CXX17 3853e0aa4SHans Wennborg 4853e0aa4SHans Wennborg const int __declspec(dllexport) &Exported = 42; 5853e0aa4SHans Wennborg 6853e0aa4SHans Wennborg // The reference temporary shouldn't be dllexport, even if the reference is. 783ea47acSFangrui Song // PRE17: @"?$RT1@Exported@@3ABHB" = internal constant i32 42 883ea47acSFangrui Song // CXX17: @"?$RT1@Exported@@3ABHB" = internal global i32 42 9853e0aa4SHans Wennborg 10*3512721dSNikita Popov // CHECK: @"?Exported@@3ABHB" = dso_local dllexport constant ptr @"?$RT1@Exported@@3ABHB" 11