Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s -fpascal-strings
      2 const wchar_t *pascalString = L"\pThis is a Pascal string";
      3 
      4 unsigned char a[3] = "\pa";
      5 unsigned char b[3] = "\pab";
      6 unsigned char c[3] = "\pabc"; // expected-error {{initializer-string for char array is too long}}
      7 unsigned char d[3] = ("\pab");
      8 unsigned char e[3] = ("\pabc"); // expected-error {{initializer-string for char array is too long}}
      9