Files
clang-p2996/lldb/test/API/commands/expression/import-std-module/conflicts/main.cpp
Raphael Isemann cfb29e4a54 [lldb] Fix some tests failing with gmodules after change to stdlib.h
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
2020-02-17 09:39:09 +01:00

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.
}