aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/wint_t-1.c
blob: 975d4dd3bb9b8e3524b6974a06e5c67fecb446aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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> /* { dg-excess-errors "" { xfail *-*-darwin* arm-wrs-linux-gnueabi mips-wrs-linux-gnu } } */

__WINT_TYPE__ __wi_t__;
wint_t *wi_t_p;

void
wit (void)
{
  wi_t_p = &__wi_t__;
}