[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / 2003-08-21-WideString.c
blob1a6e5b7c88297a7743bd5133670a8ad05cb786e2
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
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
14 struct {
15 wchar_t *name;
16 } syms = { L"NUL" };