[clang] Remove stdint.h include from a test
authorNico Weber <thakis@chromium.org>
Mon, 21 Mar 2022 18:28:59 +0000 (14:28 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 21 Mar 2022 18:30:12 +0000 (14:30 -0400)
Tests must not include headers from the host system.
It looks like the include wasn't needed for anything, so just remove it.

This makes check-clang work in a `git bash` launched from a cmd.exe
that isn't an MSVC shell (that is, %INCLUDE% isn't set).

clang/test/Index/retain-excluded-conditional-blocks.m

index ebfc7c5..f90f039 100644 (file)
@@ -1,9 +1,5 @@
 // RUN: c-index-test -retain-excluded-conditional-blocks %s | FileCheck %s
 
-#include <stdint.h>
-
-// CHECK: TypedefDecl=intptr_t
-
 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=MyCls
 @interface MyCls
 // CHECK: [[@LINE+1]]:8: ObjCInstanceMethodDecl=some_meth