forked from OSchip/llvm-project
Attempt to fix code completion test to handle LLP64 platforms
llvm-svn: 349086
This commit is contained in:
parent
7ac3f47f64
commit
82b6f98f9a
|
@ -213,7 +213,9 @@ TEST(PreferredTypeTest, BinaryExpr) {
|
|||
ptr += ^10;
|
||||
ptr -= ^10;
|
||||
})cpp";
|
||||
EXPECT_THAT(collectPreferredTypes(Code), Each("long")); // long is normalized 'ptrdiff_t'.
|
||||
// Expect the normalized ptrdiff_t type, which is typically long or long long.
|
||||
const char *PtrDiff = sizeof(void *) == sizeof(long) ? "long" : "long long";
|
||||
EXPECT_THAT(collectPreferredTypes(Code), Each(PtrDiff));
|
||||
|
||||
// Comparison operators.
|
||||
Code = R"cpp(
|
||||
|
|
Loading…
Reference in New Issue