Skip to content

Commit a5c72d8

Browse files
committed
fix test: unsupported case must also return a value
1 parent a2ace48 commit a5c72d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/test/std/numerics/c.math/hermite.pass.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ std::vector<T> get_roots(unsigned n) {
195195
T(4.6036824495507),
196196
T(5.3874808900112)};
197197

198-
default:
198+
default: // polynom degree n>20 is unsupported
199199
assert(false);
200+
return {T(-42)};
200201
}
201202
}
202203

0 commit comments

Comments
 (0)