summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/wchar_t-1.c
blob: 6d95c69c304d839725f4e64864ab8e180e7a0f39 (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>

__WCHAR_TYPE__ __wc_t__;
wchar_t *wc_t_p;

void
wct (void)
{
  wc_t_p = &__wc_t__;
}
OpenPOWER on IntegriCloud