[Libomptarget] Add missing include to define `printf`
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 8 Jun 2022 13:11:04 +0000 (09:11 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 8 Jun 2022 13:56:51 +0000 (09:56 -0400)
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

index 975e134..bd2166e 100644 (file)
@@ -2,6 +2,7 @@
 // REQUIRES: libomptarget-debug
 
 #include <stdlib.h>
+#include <stdio.h>
 
 int *allocate(size_t n) {
   int *ptr = malloc(sizeof(int) * n);