aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/arrays.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/ByteCode/arrays.cpp')
-rw-r--r--clang/test/AST/ByteCode/arrays.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/AST/ByteCode/arrays.cpp b/clang/test/AST/ByteCode/arrays.cpp
index 22a4b41..eaf9559 100644
--- a/clang/test/AST/ByteCode/arrays.cpp
+++ b/clang/test/AST/ByteCode/arrays.cpp
@@ -820,3 +820,14 @@ namespace FAM {
return 1;
}
}
+
+namespace MultiDimConstructExpr {
+ struct a {
+ a *p = this;
+ };
+ struct b {
+ a m[3][3];
+ };
+ constexpr b d;
+ static_assert(d.m[2][1].p == &d.m[2][1]);
+}