diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-27 20:34:02 +0000 |
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-27 20:34:02 +0000 |
| commit | 6776673f099d3610e86440d253fef1f3ae64323f (patch) | |
| tree | 6ff17f5104c0a0b4f9a85456421eb45d242d2e2a /clang/test/CXX | |
| parent | e932a685758222040a6ca37ec1d7e5cf157e55fe (diff) | |
| download | bcm5719-llvm-6776673f099d3610e86440d253fef1f3ae64323f.tar.gz bcm5719-llvm-6776673f099d3610e86440d253fef1f3ae64323f.zip | |
Convert initializer lists to temporaries in CreateBuiltinBinOp. Allows assignment of init lists to built-in types and resolves PR12088.
llvm-svn: 151551
Diffstat (limited to 'clang/test/CXX')
| -rw-r--r-- | clang/test/CXX/expr/expr.ass/p9-cxx11.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/CXX/expr/expr.ass/p9-cxx11.cpp b/clang/test/CXX/expr/expr.ass/p9-cxx11.cpp index fcef97cde5b..bd1603d6ab6 100644 --- a/clang/test/CXX/expr/expr.ass/p9-cxx11.cpp +++ b/clang/test/CXX/expr/expr.ass/p9-cxx11.cpp @@ -11,10 +11,9 @@ void std_example() { z = { 1, 2 }; z += { 1, 2 }; - // FIXME: implement semantics of scalar init list assignment. int a, b; - a = b = { 1 }; // unexpected-error {{incompatible type 'void'}} - a = { 1 } = b; // unexpected-error {{incompatible type 'void'}} + a = b = { 1 }; + a = { 1 } = b; } struct S { |

