Skip to content

Commit 0b05b87

Browse files
committed
fix warning
1 parent 05984ff commit 0b05b87

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/test/Analysis/builtin_assume.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ int using_builtin_assume_has_no_sideeffects(int y) {
6565

6666
template <int ...args>
6767
bool issue151529() {
68-
[[assume((true))]]; // no-crash
69-
[[assume(((args >= 0) && ...))]]; // no-crash
70-
return ((args >= 0) && ...);
68+
// no-crash
69+
[[assume((true))]];
70+
// no-crash
71+
[[assume(((args >= 0) && ...))]]; // expected-warning {{pack fold expression is a C++17 extension}}
72+
return ((args >= 0) && ...); // expected-warning {{pack fold expression is a C++17 extension}}
7173
}
7274

7375
void instantiate_issue151529() {

0 commit comments

Comments
 (0)