2011-04-07 02:42:48 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s -fpascal-strings
|
|
|
|
const wchar_t *pascalString = L"\pThis is a Pascal string";
|
2011-04-14 08:41:11 +08:00
|
|
|
|
|
|
|
unsigned char a[3] = "\pa";
|
|
|
|
unsigned char b[3] = "\pab";
|
|
|
|
unsigned char c[3] = "\pabc"; // expected-error {{initializer-string for char array is too long}}
|
2013-05-06 00:40:13 +08:00
|
|
|
unsigned char d[3] = ("\pab");
|
|
|
|
unsigned char e[3] = ("\pabc"); // expected-error {{initializer-string for char array is too long}}
|