commit | bebf5b1bcfbf591dd3cd80c4aebd6486bb34f41c | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Apr 26 14:36:30 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Apr 26 14:36:30 2013 +0000 |
tree | 986b8fc5afeef78149df9a104df35b2be3cf8e67 | |
parent | 4f1d1551ed48e2ac52f5614ba8f94e2931546b51 [diff] [blame] |
C++1y: support simple variable assignments in constexpr functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180603 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/constexpr-value-init.cpp b/test/SemaCXX/constexpr-value-init.cpp index e459f09..d137bd8 100644 --- a/test/SemaCXX/constexpr-value-init.cpp +++ b/test/SemaCXX/constexpr-value-init.cpp
@@ -1,7 +1,7 @@ // RUN: %clang_cc1 %s -std=c++11 -fsyntax-only -verify struct A { - constexpr A() : a(b + 1), b(a + 1) {} // expected-note {{uninitialized}} + constexpr A() : a(b + 1), b(a + 1) {} // expected-note {{outside its lifetime}} int a; int b; };