Fix test case committed in r355662.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 8 Mar 2019 05:30:54 +0000 (05:30 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 8 Mar 2019 05:30:54 +0000 (05:30 +0000)
Build bots were failing because wide string literals don't have type
'int *' on some targets.

llvm-svn: 355664

clang/test/SemaObjC/boxing-illegal.m

index 329873a..0d44dc1 100644 (file)
@@ -66,7 +66,7 @@ void testStringLiteral() {
   s = @(u8"abc");
   s = @(u"abc"); // expected-error {{illegal type 'unsigned short *' used in a boxed expression}}
   s = @(U"abc"); // expected-error {{illegal type 'unsigned int *' used in a boxed expression}}
-  s = @(L"abc"); // expected-error {{illegal type 'int *' used in a boxed expression}}
+  s = @(L"abc"); // expected-error-re {{illegal type {{'int \*'|'unsigned short \*'}} used in a boxed expression}}
   s = @("\pabc"); // expected-error {{illegal type 'unsigned char *' used in a boxed expression}}
 }