blob: e0d4618f2c4e732f53363c5de0dbaca46511b3b8 [file] [log] [blame]
David Majnemerc28a9642014-06-24 05:59:13 +00001// RUN: %clang_cc1 -triple i686-win32 -verify -std=c++11 %s
2
David Majnemer11a54c32014-06-24 06:40:51 +00003extern int __attribute__((dllimport)) var;
4constexpr int *varp = &var; // expected-error {{must be initialized by a constant expression}}
5
6extern __attribute__((dllimport)) void fun();
7constexpr void (*funp)(void) = &fun; // expected-error {{must be initialized by a constant expression}}