From 86a4c78047cefd98863d5c62992616a43a0240c0 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 8 Jun 2022 09:11:04 -0400 Subject: [PATCH] [Libomptarget] Add missing include to define `printf` Summary: This test was failing because of an implicit declaration of `printf` which isn't legal with newer C, causing it to fail. This patch just adds the necessary header. --- openmp/libomptarget/test/env/base_ptr_ref_count.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openmp/libomptarget/test/env/base_ptr_ref_count.c b/openmp/libomptarget/test/env/base_ptr_ref_count.c index 975e134..bd2166e 100644 --- a/openmp/libomptarget/test/env/base_ptr_ref_count.c +++ b/openmp/libomptarget/test/env/base_ptr_ref_count.c @@ -2,6 +2,7 @@ // REQUIRES: libomptarget-debug #include +#include int *allocate(size_t n) { int *ptr = malloc(sizeof(int) * n); -- 2.7.4