Skip to content

Commit

Permalink
fix test: unsupported case must also return a value
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulXiCao committed Jul 7, 2024
1 parent a2ace48 commit a5c72d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcxx/test/std/numerics/c.math/hermite.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ std::vector<T> get_roots(unsigned n) {
T(4.6036824495507),
T(5.3874808900112)};

default:
default: // polynom degree n>20 is unsupported
assert(false);
return {T(-42)};
}
}

Expand Down

0 comments on commit a5c72d8

Please sign in to comment.