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

#define _STDDEF_H
#include <wchar.h> /* { dg-excess-errors "" { xfail *-*-darwin* } } */

__WCHAR_TYPE__ __wc_t__;
wchar_t *wc_t_p;

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