Skip to content

Commit 5a7d68c

Browse files
authored
[test] Avoid libc dep in Update warn-unsafe-buffer-usage-warning-data… (#79183)
Avoid libc dep in warn-unsafe-buffer-usage-warning-data-invocation. To keep the test hermetic. This is in line with other existing declarations in the file that avoid includes.
1 parent 51a11f1 commit 5a7d68c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-data-invocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
// RUN: %clang_cc1 -std=c++20 -fblocks -include %s %s 2>&1 | FileCheck --allow-empty %s
88
// CHECK-NOT: [-Wunsafe-buffer-usage]
99

10-
#include <stdint.h>
1110
#ifndef INCLUDED
1211
#define INCLUDED
1312
#pragma clang system_header
1413

1514
// no spanification warnings for system headers
1615
#else
1716

17+
typedef __INTPTR_TYPE__ intptr_t;
18+
1819
namespace std {
1920
class type_info;
2021
class bad_cast;

0 commit comments

Comments
 (0)