xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/no-wchar.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i386-pc-win32 -fsyntax-only -fno-wchar -verify %s
2*f4a2713aSLionel Sambuc wchar_t x; // expected-error {{unknown type name 'wchar_t'}}
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc typedef unsigned short wchar_t;
5*f4a2713aSLionel Sambuc void foo(const wchar_t* x);
6*f4a2713aSLionel Sambuc 
bar()7*f4a2713aSLionel Sambuc void bar() {
8*f4a2713aSLionel Sambuc   foo(L"wide string literal");
9*f4a2713aSLionel Sambuc }
10