1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-win32 -verify -std=c++11 %s 2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-mingw32 -verify -std=c++11 %s 3*0a6a1f1dSLionel Sambuc 4*0a6a1f1dSLionel Sambuc extern int __attribute__((dllimport)) var; 5*0a6a1f1dSLionel Sambuc constexpr int *varp = &var; // expected-error {{must be initialized by a constant expression}} 6*0a6a1f1dSLionel Sambuc 7*0a6a1f1dSLionel Sambuc extern __attribute__((dllimport)) void fun(); 8*0a6a1f1dSLionel Sambuc constexpr void (*funp)(void) = &fun; // expected-error {{must be initialized by a constant expression}} 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc template <void (*)()> 11*0a6a1f1dSLionel Sambuc struct S {}; 12*0a6a1f1dSLionel Sambuc S<&fun> x; 13*0a6a1f1dSLionel Sambuc 14*0a6a1f1dSLionel Sambuc template <int *> 15*0a6a1f1dSLionel Sambuc struct U {}; 16*0a6a1f1dSLionel Sambuc U<&var> y; 17