Skip to content

Commit

Permalink
Update header units test for VSO-1309454 (#1841)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron DaCamara <cadacama@microsoft.com>
  • Loading branch information
cdacamar and cdacamar authored Apr 16, 2021
1 parent c12089e commit a108657
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int main() {

{
puts("Testing <array>.");
#if 0 // TRANSITION, VSO-1088552 (deduction guides), VSO-1309454 (duplicated deduction guides)
#ifdef MSVC_INTERNAL_TESTING // TRANSITION, VSO-1309454 (duplicated deduction guides)
constexpr array arr{10, 20, 30, 40, 50};
#else // ^^^ no workaround / workaround vvv
constexpr array<int, 5> arr{10, 20, 30, 40, 50};
Expand Down Expand Up @@ -581,7 +581,7 @@ int main() {
{
puts("Testing <ranges>.");
constexpr int arr[]{11, 0, 22, 0, 33, 0, 44, 0, 55};
#if 0 // TRANSITION, VSO-1088552 (deduction guides), VSO-1309454 (duplicated deduction guides)
#ifdef MSVC_INTERNAL_TESTING // TRANSITION, VSO-1309454 (duplicated deduction guides)
assert(ranges::distance(views::filter(arr, [](int x) { return x == 0; })) == 4);
static_assert(ranges::distance(views::filter(arr, [](int x) { return x != 0; })) == 5);
#else // ^^^ no workaround / workaround vvv
Expand Down

0 comments on commit a108657

Please sign in to comment.