Skip to content

Commit 63efa3b

Browse files
author
Erich Keane
committed
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 llvm-svn: 351550
1 parent 61105ba commit 63efa3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17
33

44
void foo(int* a, int *b) {
5-
a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from 'long'}}
5+
a -= b; // expected-warning {{incompatible integer to pointer conversion assigning to 'int *' from}}
66
}
77

88
template<typename T> T declval();

0 commit comments

Comments
 (0)