summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.ass/p9-cxx11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/expr/expr.ass/p9-cxx11.cpp')
-rw-r--r--clang/test/CXX/expr/expr.ass/p9-cxx11.cpp5
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 {
OpenPOWER on IntegriCloud