Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -triple i386-pc-win32 -fsyntax-only -fno-wchar -verify %s
      2 wchar_t x; // expected-error {{unknown type name 'wchar_t'}}
      3 
      4 typedef unsigned short wchar_t;
      5 void foo(const wchar_t* x);
      6 
      7 void bar() {
      8   foo(L"wide string literal");
      9 }
     10