diff options
-rw-r--r-- | clang/test/AST/Interp/lifetimes.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/test/AST/Interp/lifetimes.cpp b/clang/test/AST/Interp/lifetimes.cpp index c1046e5..c544bab 100644 --- a/clang/test/AST/Interp/lifetimes.cpp +++ b/clang/test/AST/Interp/lifetimes.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify %s -// RUN: %clang_cc1 -verify=ref %s +// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both %s +// RUN: %clang_cc1 -verify=ref,both %s struct Foo { int a; @@ -16,9 +16,7 @@ constexpr int dead1() { // expected-error {{never produces a constant expression return F2->a; // expected-note 2{{read of variable whose lifetime has ended}} \ // ref-note {{read of object outside its lifetime is not allowed in a constant expression}} } -static_assert(dead1() == 1, ""); // expected-error {{not an integral constant expression}} \ - // expected-note {{in call to}} \ - // ref-error {{not an integral constant expression}} \ - // ref-note {{in call to}} \ +static_assert(dead1() == 1, ""); // both-error {{not an integral constant expression}} \ + // both-note {{in call to}} |