[libcxx-commits] [PATCH] D57624: Support tests in freestanding

Ben Craig via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 4 07:18:49 PST 2019


bcraig added a comment.

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.

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