AIX stdio.h implicitly includes inttypes.h, which explicitly conflicts
with the purpose of this testcase. This patch conditionally adds a macro
definition that inhibits the implicit inclusion.
gcc/testsuite/ChangeLog
2020-06-11 David Edelsohn <dje.gcc@gmail.com>
* gcc.dg/spellcheck-inttypes.c: Don't include inttypes.h on AIX.
/* { dg-options "-std=c99" } */
+/* Prevent AIX from implicitly including inttypes.h. */
+#ifdef _AIX
+#define _H_INTTYPES_TYPE_TS
+#endif
#include <stdio.h>
#include <stdint.h>
/* Missing <inttypes.h>. */