r355700 - Use {{.*}} in test case to match the type of wide string literals.

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 8 07:20:12 PST 2019


Author: ahatanak
Date: Fri Mar  8 07:20:12 2019
New Revision: 355700

URL: http://llvm.org/viewvc/llvm-project?rev=355700&view=rev
Log:
Use {{.*}} in test case to match the type of wide string literals.

The type of wide string literals varies depending on the target.

Modified:
    cfe/trunk/test/SemaObjC/boxing-illegal.m

Modified: cfe/trunk/test/SemaObjC/boxing-illegal.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/boxing-illegal.m?rev=355700&r1=355699&r2=355700&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/boxing-illegal.m (original)
+++ cfe/trunk/test/SemaObjC/boxing-illegal.m Fri Mar  8 07:20:12 2019
@@ -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}}
 }
 




More information about the cfe-commits mailing list