summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/blocks-cxx11.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-06-02 00:09:52 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-06-02 00:09:52 +0000
commite67ca5803ac9e39cc31ed1ad9576e1626c8141eb (patch)
tree23c41f886e675e2f4ec708789544fee113084129 /test/CodeGenCXX/blocks-cxx11.cpp
parent0348be0c78781c5ddb8c271976812705410c731a (diff)
PR12848: When emitting a local variable declared 'constexpr', always initialize it with a store or a memcpy, not by emitting the initializer expression. This is not required for correctness, but more closely aligns with people's expectations, and is cheap (since we've already evaluated the initializer).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/blocks-cxx11.cpp')
-rw-r--r--test/CodeGenCXX/blocks-cxx11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenCXX/blocks-cxx11.cpp b/test/CodeGenCXX/blocks-cxx11.cpp
index 3f0380abbd..42d33ae856 100644
--- a/test/CodeGenCXX/blocks-cxx11.cpp
+++ b/test/CodeGenCXX/blocks-cxx11.cpp
@@ -46,7 +46,7 @@ namespace test_complex_int {
void test() {
constexpr _Complex int x = 500;
takeABlock(^{ takeItByValue(x); });
- // CHECK: store i32 500,
+ // CHECK: store { i32, i32 } { i32 500, i32 0 },
// CHECK: store i32 500,
// CHECK-NEXT: store i32 0,