summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/wchar_t-1.c
blob: 8e22ece3c6701284c2d87d27eb55e5cba26d3e2b (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 wchar_t don't
   match.  */

#define _STDDEF_H
#include <wchar.h>

__WCHAR_TYPE__ __wc_t__;
wchar_t *wc_t_p;

void
wct (void)
{
  wc_t_p = &__wc_t__;
}