From: Erich Keane Date: Fri, 18 Jan 2019 13:58:10 +0000 (+0000) Subject: Fix test failure from r351495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4d73e63de296ead4e7fcddce1ee24abcd3cde7b;p=clang Fix test failure from r351495 The test has problems due to some platforms having a different type for ptrdiff_t, so the error message is different. The error message doesn't matter to the test for anything other than an incompatible intger to pointer conversion, so this patch removes the integral type from the expected message. Change-Id: I80e786f9b80268163813774bbf25a9ca25b6c60c git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351550 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/int-ptr-cast-SFINAE.cpp b/test/SemaCXX/int-ptr-cast-SFINAE.cpp index 1366eb4c37..0d2bb6083a 100644 --- a/test/SemaCXX/int-ptr-cast-SFINAE.cpp +++ b/test/SemaCXX/int-ptr-cast-SFINAE.cpp @@ -2,7 +2,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17 void foo(int* a, int *b) { - a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from 'long'}} + a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from}} } template T declval();