[all-commits] [llvm/llvm-project] 048688: [libc++] Fix incorrect main() signatures in the tests
Louis Dionne via All-commits
all-commits at lists.llvm.org
Wed Oct 20 13:29:48 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 048688fd80fadce1c72c365b0d74599a33389cfb
https://github.com/llvm/llvm-project/commit/048688fd80fadce1c72c365b0d74599a33389cfb
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2021-10-20 (Wed, 20 Oct 2021)
Changed paths:
M libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/deduct.pass.cpp
M libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor.pass.cpp
M libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/type_conv_ctor2.pass.cpp
M libcxx/test/std/utilities/tuple/tuple.tuple/PR38601.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_equal/cmp_equal.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater/cmp_greater.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_greater_equal/cmp_greater_equal.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less/cmp_less.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_less_equal/cmp_less_equal.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.cmp_not_equal/cmp_not_equal.pass.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.fail.cpp
M libcxx/test/std/utilities/utility/utility.intcmp/intcmp.in_range/in_range.pass.cpp
Log Message:
-----------
[libc++] Fix incorrect main() signatures in the tests
Those creep up from time to time. We need to use `int main(int, char**)`
because in freestanding mode, `main` doesn't get special treatment and
special mangling, so we setup a symbol alias from the mangled version of
`main(int, char**)` to `extern "C" main`. That only works if all the tests
are consistent about how they define their main function.
More information about the All-commits
mailing list