From 342613d6481345768e89fc4acad3085c84b093c6 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sun, 8 Oct 2023 05:28:43 +0000 Subject: [PATCH] [test][IRGen] Avoid redefinition of bool in huge_c_type.swift musl and wasi-libc modules contains stdint.h and stdbool.h in their modulemap, and `#incnlude ` in huge_c_type.h leads including stdbool.h also in the scope. This results in conflicting the bool definition, so we should avoid the redefinition. --- test/IRGen/Inputs/huge_c_type.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/IRGen/Inputs/huge_c_type.h b/test/IRGen/Inputs/huge_c_type.h index 2afde356161e4..e24df54f0c411 100644 --- a/test/IRGen/Inputs/huge_c_type.h +++ b/test/IRGen/Inputs/huge_c_type.h @@ -1,7 +1,5 @@ #include -typedef uint8_t bool; - #define CREATE_ARRAY(T, N) \ struct { \ T data[N]; \ @@ -15,7 +13,7 @@ typedef struct { typedef struct { uint64_t a; - bool b; + uint8_t b; CREATE_ARRAY(Thing, 16) c; uint32_t d; uint64_t e;