diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-26 14:36:30 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-26 14:36:30 +0000 |
| commit | 3da88fac5416ce0437bd94d47f25754416c36b5a (patch) | |
| tree | cc6f013e1378246a6df3a68ca5c7ac2931117994 /clang/test/SemaCXX/constexpr-printing.cpp | |
| parent | b2151b82004dc35581033c479b0f3e418ac62790 (diff) | |
| download | bcm5719-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-printing.cpp')
| -rw-r--r-- | clang/test/SemaCXX/constexpr-printing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/constexpr-printing.cpp b/clang/test/SemaCXX/constexpr-printing.cpp index 9170fa1ec24..e545f45d601 100644 --- a/clang/test/SemaCXX/constexpr-printing.cpp +++ b/clang/test/SemaCXX/constexpr-printing.cpp @@ -9,7 +9,7 @@ struct S { int n, m; }; -constexpr int extract(const S &s) { return s.n; } // expected-note {{read of uninitialized object is not allowed in a constant expression}} +constexpr int extract(const S &s) { return s.n; } // expected-note {{read of object outside its lifetime is not allowed in a constant expression}} constexpr S s1; // ok void f() { |

