diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-02-16 19:10:26 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-02-16 19:10:26 +0000 |
| commit | 6eea8b8c1aad853d6161709d8b3035dfd867fa1c (patch) | |
| tree | 195fb543fdb28a1c2a6baf81d96adc1bc302f8ca /test/SemaCXX/init-expr-crash.cpp | |
| parent | 660d91aa9ee00f68bdb884b29845a39be78bc557 (diff) | |
Notes
Diffstat (limited to 'test/SemaCXX/init-expr-crash.cpp')
| -rw-r--r-- | test/SemaCXX/init-expr-crash.cpp | 8 |
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}; +}; + |
