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