On 06.05.20 22:12, Jakub Jelinek wrote:
On Wed, May 06, 2020 at 09:54:47PM +0200, Andreas Tobler wrote:
--- a/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c
+++ b/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c
@@ -1,5 +1,6 @@
-#include <alloca.h>
-
+#include <stdlib.h>

It needs to be:
+#if __has_include(<alloca.h>)

+#include <alloca.h>

+#endif

Doh :(

Fixed, thanks.

__has_include doesn't include anything, just checks if the header is
available.

Then I just wonder why the tests passed on Linux (ubuntu-20.04)

Andreas

Reply via email to