summaryrefslogtreecommitdiff
path: root/test/SemaCXX/references.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/references.cpp')
-rw-r--r--test/SemaCXX/references.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/references.cpp b/test/SemaCXX/references.cpp
index ab44e78453b2c..70d3799a0ea56 100644
--- a/test/SemaCXX/references.cpp
+++ b/test/SemaCXX/references.cpp
@@ -134,3 +134,6 @@ namespace PR7149 {
namespace PR8608 {
bool& f(unsigned char& c) { return (bool&)c; }
}
+
+// The following crashed trying to recursively evaluate the LValue.
+const int &do_not_crash = do_not_crash;