]> granicus.if.org Git - clang/commitdiff
Fix test failure from r351495
authorErich Keane <erich.keane@intel.com>
Fri, 18 Jan 2019 13:58:10 +0000 (13:58 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 18 Jan 2019 13:58:10 +0000 (13:58 +0000)
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

test/SemaCXX/int-ptr-cast-SFINAE.cpp

index 1366eb4c3717b7d4d0677886700b9e74bea437db..0d2bb6083adae3ebade53c322f59532d5b080c8e 100644 (file)
@@ -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<typename T> T declval();