xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2003-08-21-WideString.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // This bit is taken from Sema/wchar.c so we can avoid the wchar.h include.
4*f4a2713aSLionel Sambuc typedef __WCHAR_TYPE__ wchar_t;
5*f4a2713aSLionel Sambuc #if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \
6*f4a2713aSLionel Sambuc   || defined(_M_X64) || defined(SHORT_WCHAR)
7*f4a2713aSLionel Sambuc   #define WCHAR_T_TYPE unsigned short
8*f4a2713aSLionel Sambuc #elif defined(__sun) || defined(__AuroraUX__)
9*f4a2713aSLionel Sambuc   #define WCHAR_T_TYPE long
10*f4a2713aSLionel Sambuc #else /* Solaris or AuroraUX. */
11*f4a2713aSLionel Sambuc   #define WCHAR_T_TYPE int
12*f4a2713aSLionel Sambuc #endif
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc struct {
15*f4a2713aSLionel Sambuc   wchar_t *name;
16*f4a2713aSLionel Sambuc } syms = { L"NUL" };
17