diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-03 08:26:00 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-03 08:26:00 +0000 |
commit | 454a7cdfb35e492e0539cbc75452229d3a5c5f54 (patch) | |
tree | c63fb6636b1be122d7ebe1ab777d4bfa8c722939 /clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp | |
parent | f05149680450b6543fc676987f601f359a86281f (diff) | |
download | bcm5719-llvm-454a7cdfb35e492e0539cbc75452229d3a5c5f54.tar.gz bcm5719-llvm-454a7cdfb35e492e0539cbc75452229d3a5c5f54.zip |
Implement DR990 and DR1070. Aggregate initialization initializes uninitialized
elements from {}, rather than value-initializing them. This permits calling an
initializer-list constructor or constructing a std::initializer_list object.
(It would also permit initializing a const reference or rvalue reference if
that weren't explicitly prohibited by other rules.)
llvm-svn: 210091
Diffstat (limited to 'clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp b/clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp index ae49a047f62..8bdf8633d61 100644 --- a/clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp +++ b/clang/test/CodeGenCXX/cxx1y-initializer-aggregate.cpp @@ -46,7 +46,7 @@ B z { 1 }; // CHECK: store i8 %{{.*}}, i8* getelementptr inbounds ({{.*}} @a, i32 0, i32 2) // CHECK: call i32 @_ZN1A1fEv({{.*}} @a) // CHECK: store i32 %{{.*}}, i32* getelementptr inbounds ({{.*}}* @a, i32 0, i32 3) -// CHECK: call void @{{.*}}C1Ev({{.*}} getelementptr inbounds (%struct.A* @a, i32 0, i32 4)) +// CHECK: store double 1.000000e+00, double* getelementptr inbounds ({{.*}} @a, i32 0, i32 4, i32 0) // No dynamic initialization of 'b': |