summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/const-init.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-10-24 22:25:55 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-10-24 22:25:55 +0000
commitb000459901bc1c5a55246da83550ad427ad4c4ff (patch)
treeac22838d80be19e49f8023e0d0af81624c62dbe7 /test/CodeGenCXX/const-init.cpp
parent3eafbb85d1d9d108f089fd2451ddb6932eaafef2 (diff)
Don't try to emit CK_LValueBitCast casts as constants. PR9558.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142863 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/const-init.cpp')
-rw-r--r--test/CodeGenCXX/const-init.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGenCXX/const-init.cpp b/test/CodeGenCXX/const-init.cpp
index 797d1377f6..f06e546ec9 100644
--- a/test/CodeGenCXX/const-init.cpp
+++ b/test/CodeGenCXX/const-init.cpp
@@ -36,3 +36,7 @@ namespace test2 {
double t0 = A::d;
double t1[] = { A::d, A::f };
}
+
+// We don't expect to fold this in the frontend, but make sure it doesn't crash.
+// CHECK: @PR9558 = global float 0.000000e+0
+float PR9558 = reinterpret_cast<const float&>("asd");