summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2019-03-08 15:20:12 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2019-03-08 15:20:12 +0000
commit62d1d024ab3564e61319b4942ae66630cac63d53 (patch)
treea6bc4ba2c0a64abb318cf405335ddc092fa5be0a /clang
parent00ab0339ed75ed41fb900494da45990891dc51a6 (diff)
downloadbcm5719-llvm-62d1d024ab3564e61319b4942ae66630cac63d53.tar.gz
bcm5719-llvm-62d1d024ab3564e61319b4942ae66630cac63d53.zip
Use {{.*}} in test case to match the type of wide string literals.
The type of wide string literals varies depending on the target. llvm-svn: 355700
Diffstat (limited to 'clang')
-rw-r--r--clang/test/SemaObjC/boxing-illegal.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/boxing-illegal.m b/clang/test/SemaObjC/boxing-illegal.m
index 0d44dc197a1..44938192887 100644
--- a/clang/test/SemaObjC/boxing-illegal.m
+++ b/clang/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}}
}
OpenPOWER on IntegriCloud