Skip to content

Commit fc38182

Browse files
committed
[clang][Interp][NFC] Convert test case to verify=expected,ref style
1 parent 15cccc5 commit fc38182

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

clang/test/AST/Interp/lambda.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify -std=c++20 %s
2-
// RUN: %clang_cc1 -verify=ref -std=c++20 %s
1+
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both -std=c++20 %s
2+
// RUN: %clang_cc1 -verify=ref,both -std=c++20 %s
33

44
constexpr int a = 12;
55
constexpr int f = [c = a]() { return c; }();
@@ -43,18 +43,15 @@ static_assert(add2(4, 5) == 11);
4343

4444
constexpr int div(int a, int b) {
4545
auto f = [=]() {
46-
return a / b; // expected-note {{division by zero}} \
47-
// ref-note {{division by zero}}
46+
return a / b; // both-note {{division by zero}}
4847
};
4948

5049
return f(); // expected-note {{in call to '&f->operator()()'}} \
5150
// ref-note {{in call to 'f.operator()()'}}
5251
}
5352
static_assert(div(8, 2) == 4);
54-
static_assert(div(8, 0) == 4); // expected-error {{not an integral constant expression}} \
55-
// expected-note {{in call to 'div(8, 0)'}} \
56-
// ref-error {{not an integral constant expression}} \
57-
// ref-note {{in call to 'div(8, 0)'}}
53+
static_assert(div(8, 0) == 4); // both-error {{not an integral constant expression}} \
54+
// both-note {{in call to 'div(8, 0)'}}
5855

5956

6057
struct F {

0 commit comments

Comments
 (0)