File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify %s
2
- // RUN: %clang_cc1 -verify=ref %s
1
+ // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both %s
2
+ // RUN: %clang_cc1 -verify=ref,both %s
3
3
4
4
struct Foo {
5
5
int a;
@@ -16,9 +16,7 @@ constexpr int dead1() { // expected-error {{never produces a constant expression
16
16
return F2->a ; // expected-note 2{{read of variable whose lifetime has ended}} \
17
17
// ref-note {{read of object outside its lifetime is not allowed in a constant expression}}
18
18
}
19
- static_assert (dead1() == 1, ""); // expected-error {{not an integral constant expression}} \
20
- // expected-note {{in call to}} \
21
- // ref-error {{not an integral constant expression}} \
22
- // ref-note {{in call to}} \
19
+ static_assert (dead1() == 1, ""); // both-error {{not an integral constant expression}} \
20
+ // both-note {{in call to}}
23
21
24
22
You can’t perform that action at this time.
0 commit comments