summaryrefslogtreecommitdiff
path: root/test/SemaCXX/PR19955.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/PR19955.cpp')
-rw-r--r--test/SemaCXX/PR19955.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaCXX/PR19955.cpp b/test/SemaCXX/PR19955.cpp
new file mode 100644
index 0000000000..81fa70d7f5
--- /dev/null
+++ b/test/SemaCXX/PR19955.cpp
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -triple i686-win32 -verify -std=c++11 %s
+
+extern int __attribute__((dllimport)) y;
+constexpr int *x = &y; // expected-error {{must be initialized by a constant expression}}