r351550 - Fix test failure from r351495

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 18 05:58:10 PST 2019


Author: erichkeane
Date: Fri Jan 18 05:58:10 2019
New Revision: 351550

URL: http://llvm.org/viewvc/llvm-project?rev=351550&view=rev
Log:
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

Modified:
    cfe/trunk/test/SemaCXX/int-ptr-cast-SFINAE.cpp

Modified: cfe/trunk/test/SemaCXX/int-ptr-cast-SFINAE.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/int-ptr-cast-SFINAE.cpp?rev=351550&r1=351549&r2=351550&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/int-ptr-cast-SFINAE.cpp (original)
+++ cfe/trunk/test/SemaCXX/int-ptr-cast-SFINAE.cpp Fri Jan 18 05:58:10 2019
@@ -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();




More information about the cfe-commits mailing list