diff options
Diffstat (limited to 'clang/test/CodeGenCXX/const-init.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/const-init.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/const-init.cpp b/clang/test/CodeGenCXX/const-init.cpp index 797d1377f69..f06e546ec9a 100644 --- a/clang/test/CodeGenCXX/const-init.cpp +++ b/clang/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"); |

