Skip to content

Commit bf9ce36

Browse files
author
Doug Wyatt
committed
Disable vla-extension warning in the RUN line.
1 parent 15a960c commit bf9ce36

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/test/Sema/attr-nonblocking-constraints.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -fblocks -fcxx-exceptions -std=c++20 -verify -Wfunction-effects %s
1+
// RUN: %clang_cc1 -fsyntax-only -fblocks -fcxx-exceptions -std=c++20 -verify -Wfunction-effects -Wno-vla-extension %s
22
// These are in a separate file because errors (e.g. incompatible attributes) currently prevent
33
// the FXAnalysis pass from running at all.
44

@@ -259,10 +259,7 @@ void nb14(unsigned idx) [[clang::nonblocking]]
259259
FP twoDim[2][2] = {};
260260
FP g = twoDim[1][1];
261261

262-
#pragma clang diagnostic push
263-
#pragma clang diagnostic ignored "-Wvla-extension"
264262
FP vla[idx];
265-
#pragma clang diagnostic pop
266263
FP h = vla[0];
267264
}
268265

0 commit comments

Comments
 (0)