Author: Timm Bäder Date: 2024-02-16T18:59:07+01:00 New Revision: fc38182eab1614e6e6c067ad655935d680e72a41
URL: https://github.com/llvm/llvm-project/commit/fc38182eab1614e6e6c067ad655935d680e72a41 DIFF: https://github.com/llvm/llvm-project/commit/fc38182eab1614e6e6c067ad655935d680e72a41.diff LOG: [clang][Interp][NFC] Convert test case to verify=expected,ref style Added: Modified: clang/test/AST/Interp/lambda.cpp Removed: ################################################################################ diff --git a/clang/test/AST/Interp/lambda.cpp b/clang/test/AST/Interp/lambda.cpp index 75a4a628f11833..3040e6a1e386c7 100644 --- a/clang/test/AST/Interp/lambda.cpp +++ b/clang/test/AST/Interp/lambda.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify -std=c++20 %s -// RUN: %clang_cc1 -verify=ref -std=c++20 %s +// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both -std=c++20 %s +// RUN: %clang_cc1 -verify=ref,both -std=c++20 %s constexpr int a = 12; constexpr int f = [c = a]() { return c; }(); @@ -43,18 +43,15 @@ static_assert(add2(4, 5) == 11); constexpr int div(int a, int b) { auto f = [=]() { - return a / b; // expected-note {{division by zero}} \ - // ref-note {{division by zero}} + return a / b; // both-note {{division by zero}} }; return f(); // expected-note {{in call to '&f->operator()()'}} \ // ref-note {{in call to 'f.operator()()'}} } static_assert(div(8, 2) == 4); -static_assert(div(8, 0) == 4); // expected-error {{not an integral constant expression}} \ - // expected-note {{in call to 'div(8, 0)'}} \ - // ref-error {{not an integral constant expression}} \ - // ref-note {{in call to 'div(8, 0)'}} +static_assert(div(8, 0) == 4); // both-error {{not an integral constant expression}} \ + // both-note {{in call to 'div(8, 0)'}} struct F { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits