Skip to content

Commit 009dbf9

Browse files
committed
[clang] add -fimplicit-constexpr flag: fix failed tests
1 parent 2c47041 commit 009dbf9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/Sema/implicit-constexpr-basic.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ inline bool inline_undefined_fnc();
6666
constexpr bool result_inline_undefined_fnc = inline_undefined_fnc();
6767
// ALL-error@-1 {{constexpr variable 'result_inline_undefined_fnc' must be initialized by a constant expression}}
6868
// ALLNORMAL-note@-2 {{non-constexpr function 'inline_undefined_fnc' cannot be used in a constant expression}}
69-
// ALLIMPLICITOLD-note@-3 {{undefined function 'inline_undefined_fnc' cannot be used in a constant expression}}
70-
// ALLIMPLICITNEW-note@-4 {{non-inline function 'inline_undefined_fnc' is not implicitly constexpr}}
69+
// ALLIMPLICIT-note@-3 {{undefined function 'inline_undefined_fnc' cannot be used in a constant expression}}
7170

7271
// =============================================
7372
// 5) lambda function

0 commit comments

Comments
 (0)