Commit 82b47b2978 changes the way the stdlib.h
header is structured which seems to cause strange lookup failures in the modules
build. This updates a few failing tests so that they pass with the new
behavior of stdlib.h.
See the discussion in https://reviews.llvm.org/rG82b47b2978405f802a33b00d046e6f18ef6a47be
12 lines
239 B
C++
12 lines
239 B
C++
#include <cstdlib>
|
|
#include <utility>
|
|
#include <cmath>
|
|
|
|
int main(int argc, char **argv) {
|
|
std::size_t f = argc;
|
|
f = std::abs(argc);
|
|
f = std::div(argc * 2, argc).quot;
|
|
std::swap(f, f);
|
|
return f; // Set break point at this line.
|
|
}
|