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 15a960c commit bf9ce36Copy full SHA for bf9ce36
clang/test/Sema/attr-nonblocking-constraints.cpp
@@ -1,4 +1,4 @@
1
-// RUN: %clang_cc1 -fsyntax-only -fblocks -fcxx-exceptions -std=c++20 -verify -Wfunction-effects %s
+// RUN: %clang_cc1 -fsyntax-only -fblocks -fcxx-exceptions -std=c++20 -verify -Wfunction-effects -Wno-vla-extension %s
2
// These are in a separate file because errors (e.g. incompatible attributes) currently prevent
3
// the FXAnalysis pass from running at all.
4
@@ -259,10 +259,7 @@ void nb14(unsigned idx) [[clang::nonblocking]]
259
FP twoDim[2][2] = {};
260
FP g = twoDim[1][1];
261
262
-#pragma clang diagnostic push
263
-#pragma clang diagnostic ignored "-Wvla-extension"
264
FP vla[idx];
265
-#pragma clang diagnostic pop
266
FP h = vla[0];
267
}
268
0 commit comments