From: Akira Hatanaka Date: Fri, 8 Mar 2019 15:20:12 +0000 (+0000) Subject: Use {{.*}} in test case to match the type of wide string literals. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a39447f2241993ea12db8b1efc2484f731c15ba5;p=clang Use {{.*}} in test case to match the type of wide string literals. 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 --- diff --git a/test/SemaObjC/boxing-illegal.m b/test/SemaObjC/boxing-illegal.m index 0d44dc197a..4493819288 100644 --- a/test/SemaObjC/boxing-illegal.m +++ b/test/SemaObjC/boxing-illegal.m @@ -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}} }