Skip to content

Commit

Permalink
[Concepts] Fix failing test on Windows
Browse files Browse the repository at this point in the history
Fix test failed by D43357 on Windows.
  • Loading branch information
saarraz committed Jan 9, 2020
1 parent f53b38d commit 84ce462
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clang/test/CXX/over/over.match/over.match.best/p1-2a.cpp
Expand Up @@ -79,11 +79,11 @@ namespace non_template
return 0.0;
}

void bar() requires (sizeof(long) >= 8) { }
void bar() requires (sizeof(char[8]) >= 8) { }
// expected-note@-1 {{candidate function}}
// expected-note@-2 {{similar constraint expressions not considered equivalent}}

void bar() requires (sizeof(long) >= 8 && sizeof(int) <= 30) { }
void bar() requires (sizeof(char[8]) >= 8 && sizeof(int) <= 30) { }
// expected-note@-1 {{candidate function}}
// expected-note@-2 {{similar constraint expression here}}

Expand Down Expand Up @@ -111,4 +111,3 @@ namespace non_template
static_assert(goo(1) == 1);
static_assert(doo(2) == 1); // expected-error {{call to 'doo' is ambiguous}}
}

0 comments on commit 84ce462

Please sign in to comment.