summaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/invalid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/ByteCode/invalid.cpp')
-rw-r--r--clang/test/AST/ByteCode/invalid.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/AST/ByteCode/invalid.cpp b/clang/test/AST/ByteCode/invalid.cpp
index 2a6c2d13e846..affb40eada87 100644
--- a/clang/test/AST/ByteCode/invalid.cpp
+++ b/clang/test/AST/ByteCode/invalid.cpp
@@ -58,3 +58,11 @@ namespace Casts {
/// Just make sure this doesn't crash.
float PR9558 = reinterpret_cast<const float&>("asd");
}
+
+
+/// This used to crash in collectBlock().
+struct S {
+};
+S s;
+S *sp[2] = {&s, &s};
+S *&spp = sp[1];