summaryrefslogtreecommitdiff
path: root/test/SemaCXX/init-expr-crash.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-02-16 19:10:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-02-16 19:10:26 +0000
commit6eea8b8c1aad853d6161709d8b3035dfd867fa1c (patch)
tree195fb543fdb28a1c2a6baf81d96adc1bc302f8ca /test/SemaCXX/init-expr-crash.cpp
parent660d91aa9ee00f68bdb884b29845a39be78bc557 (diff)
Notes
Diffstat (limited to 'test/SemaCXX/init-expr-crash.cpp')
-rw-r--r--test/SemaCXX/init-expr-crash.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/init-expr-crash.cpp b/test/SemaCXX/init-expr-crash.cpp
index 407da78e60b0..201ab03955cd 100644
--- a/test/SemaCXX/init-expr-crash.cpp
+++ b/test/SemaCXX/init-expr-crash.cpp
@@ -29,3 +29,11 @@ template <class T> struct B {
return 0;
}
};
+
+// This test checks for a crash that resulted from us miscomputing the
+// dependence of a nested initializer list.
+template<int> struct X {
+ static constexpr int n = 4;
+ static constexpr int a[1][1] = {n};
+};
+