summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constexpr-value-init.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-26 14:36:30 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-26 14:36:30 +0000
commit3da88fac5416ce0437bd94d47f25754416c36b5a (patch)
treecc6f013e1378246a6df3a68ca5c7ac2931117994 /clang/test/SemaCXX/constexpr-value-init.cpp
parentb2151b82004dc35581033c479b0f3e418ac62790 (diff)
downloadbcm5719-llvm-3da88fac5416ce0437bd94d47f25754416c36b5a.tar.gz
bcm5719-llvm-3da88fac5416ce0437bd94d47f25754416c36b5a.zip
C++1y: support simple variable assignments in constexpr functions.
llvm-svn: 180603
Diffstat (limited to 'clang/test/SemaCXX/constexpr-value-init.cpp')
-rw-r--r--clang/test/SemaCXX/constexpr-value-init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/constexpr-value-init.cpp b/clang/test/SemaCXX/constexpr-value-init.cpp
index e459f097b9d..d137bd88db0 100644
--- a/clang/test/SemaCXX/constexpr-value-init.cpp
+++ b/clang/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;
};
OpenPOWER on IntegriCloud