diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/wint_t-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/wint_t-1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/wint_t-1.c b/gcc/testsuite/gcc.dg/wint_t-1.c new file mode 100644 index 00000000000..3f88dcbeab0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/wint_t-1.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-Wall" } */ + +/* Compile with -Wall to get a warning if built-in and system wint_t don't + match. */ + +#define _STDDEF_H +#include <wchar.h> + +__WINT_TYPE__ __wi_t__; +wint_t *wi_t_p; + +void +wit (void) +{ + wi_t_p = &__wi_t__; +} |