]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2009-07-15-pad-wchar_t-array.c
Vendor import of clang RELEASE_360/rc2 tag r227651 (effectively, 3.6.0 RC2):
[FreeBSD/FreeBSD.git] / test / CodeGen / 2009-07-15-pad-wchar_t-array.c
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2
3 // This bit is taken from Sema/wchar.c so we can avoid the wchar.h include.
4 typedef __WCHAR_TYPE__ wchar_t;
5 #if defined(_WIN32) || defined(_M_IX86) || defined(__CYGWIN__) \
6   || defined(_M_X64) || defined(SHORT_WCHAR)
7   #define WCHAR_T_TYPE unsigned short
8 #elif defined(__sun)
9   #define WCHAR_T_TYPE long
10 #else /* Solaris. */
11   #define WCHAR_T_TYPE int
12 #endif
13
14 signed short _iodbcdm_sqlerror( )
15 {
16   wchar_t _sqlState[6] = { L"\0" };
17 }