[libcxx-commits] [PATCH] D57624: Support tests in freestanding
JF Bastien via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 4 09:23:56 PST 2019
jfb added a comment.
In D57624#1383165 <https://reviews.llvm.org/D57624#1383165>, @bcraig wrote:
> For what it's worth, when I ran these tests with MSVC in the Windows kernel, I just called main, and falling off the end of main happened to work. I can't say I'm thrilled with that approach though.
It doesn't on the platform I've been testing, and I wouldn't rely on it working forever.
> I did attempt some very rough sed script renames of "main" to something else. I think I even tried re-writing the signature to "void test_case_name_main()". I vaguely recall that some tests will do a `return some_int` though, so my plans were foiled there as well.
>
> For context, I was _also_ attempting to build things in such a way that I could build all the tests into one binary. So maybe a few of those techniques will work fine if you aren't also trying to make one massive executable.
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57624/new/
https://reviews.llvm.org/D57624
More information about the libcxx-commits
mailing list