aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/wint_t-1.c
blob: 0574fb9a48fd9956c72588659b87a54e465516cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile { target wchar } } */
/* { 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__;
}