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
llvm-svn: 351550

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

index 1366eb4..0d2bb60 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();