diff options
author | Clement Courbet <courbet@google.com> | 2018-12-11 08:39:11 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-12-11 08:39:11 +0000 |
commit | baec00022d6400f335079c04207349c21f1e8f41 (patch) | |
tree | 5f16b53a6dd76cfacf2b020db553dc834ca5a52d /test/PCH | |
parent | 90d955a050780c8c1824a2f3219e2e3856dd848b (diff) | |
download | clang-baec00022d6400f335079c04207349c21f1e8f41.tar.gz |
Reland r348741 "[Sema] Further improvements to to static_assert diagnostics."
Fix a dangling reference to temporary, never return nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/cxx-static_assert.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/PCH/cxx-static_assert.cpp b/test/PCH/cxx-static_assert.cpp index 8049525fb5..be6c0ab2a7 100644 --- a/test/PCH/cxx-static_assert.cpp +++ b/test/PCH/cxx-static_assert.cpp @@ -3,7 +3,7 @@ // Test with pch. // RUN: %clang_cc1 -std=c++11 -emit-pch -o %t %s -// RUN: %clang_cc1 -include-pch %t -verify -std=c++11 %s +// RUN: %clang_cc1 -include-pch %t -verify -std=c++11 %s #ifndef HEADER #define HEADER @@ -14,7 +14,7 @@ template<int N> struct T { #else -// expected-error@12 {{static_assert failed "N is not 2!"}} +// expected-error@12 {{static_assert failed due to requirement '1 == 2' "N is not 2!"}} T<1> t1; // expected-note {{in instantiation of template class 'T<1>' requested here}} T<2> t2; |