We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05984ff commit 0b05b87Copy full SHA for 0b05b87
clang/test/Analysis/builtin_assume.cpp
@@ -65,9 +65,11 @@ int using_builtin_assume_has_no_sideeffects(int y) {
65
66
template <int ...args>
67
bool issue151529() {
68
- [[assume((true))]]; // no-crash
69
- [[assume(((args >= 0) && ...))]]; // no-crash
70
- return ((args >= 0) && ...);
+ // no-crash
+ [[assume((true))]];
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}}
73
}
74
75
void instantiate_issue151529() {
0 commit comments