Skip to content

Commit

Permalink
[test] Avoid libc dep in Update warn-unsafe-buffer-usage-warning-data… (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
dklimkin committed Jan 23, 2024
1 parent 51a11f1 commit 5a7d68c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
// RUN: %clang_cc1 -std=c++20 -fblocks -include %s %s 2>&1 | FileCheck --allow-empty %s
// CHECK-NOT: [-Wunsafe-buffer-usage]

#include <stdint.h>
#ifndef INCLUDED
#define INCLUDED
#pragma clang system_header

// no spanification warnings for system headers
#else

typedef __INTPTR_TYPE__ intptr_t;

namespace std {
class type_info;
class bad_cast;
Expand Down

0 comments on commit 5a7d68c

Please sign in to comment.