Skip to content

Commit 03cc52d

Browse files
committed
[-Wunsafe-buffer-usage] To disable a test on Windows systems.
One of the tests in the commit 'bdf4f2bea50e87f5b9273e3bbc9a7753bca3a6bb' sometimes fails on one of the buildbots runing on a Windows machine. For example, "https://lab.llvm.org/buildbot/#/builders/60/builds/10615" is a failed build. Now we disable it until we figure out why this could happen.
1 parent 374fd40 commit 03cc52d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: !system-windows
12
// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
23
typedef int * Int_ptr_t;
34
typedef int Int_t;
@@ -97,10 +98,10 @@ void decl_without_init() {
9798
int tmp;
9899
int * p;
99100
// CHECK-DAG: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:10}:"std::span<int> p"
100-
// CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]
101+
// CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]:{{^3}}
101102
Int_ptr_t q;
102103
// CHECK-DAG: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:14}:"std::span<int> q"
103-
// CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]
104+
// CHECK-NOT: fix-it:"{{.*}}":{[[@LINE-2]]:{{^3}}
104105
tmp = p[5];
105106
tmp = q[5];
106107
}

0 commit comments

Comments
 (0)