]> granicus.if.org Git - clang/commitdiff
Use {{.*}} in test case to match the type of wide string literals.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 8 Mar 2019 15:20:12 +0000 (15:20 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 8 Mar 2019 15:20:12 +0000 (15:20 +0000)
The type of wide string literals varies depending on the target.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355700 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/boxing-illegal.m

index 0d44dc197a1d77690faed5ceb1bf3a3a923d1b6c..44938192887a532f44d9994d20e5bb1f0084d2e9 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-re {{illegal type {{'int \*'|'unsigned short \*'}} used in a boxed expression}}
+  s = @(L"abc"); // expected-error-re {{illegal type {{.*}} used in a boxed expression}}
   s = @("\pabc"); // expected-error {{illegal type 'unsigned char *' used in a boxed expression}}
 }