[cfe-dev] [libcxx] Problem with quick_exit test
İsmail Dönmez
ismail at donmez.ws
Thu May 9 05:17:51 PDT 2013
Hi,
On Wed, May 8, 2013 at 7:16 PM, Howard Hinnant <hhinnant at apple.com> wrote:
>
> On May 8, 2013, at 6:21 AM, İsmail Dönmez <ismail at donmez.ws> wrote:
>
> > Hi,
> >
> > test/language.support/support.start.term/quick_exit.pass.cpp uses
> std::at_quick_exit() to test quick exit functionality. But looking at
> include/cstdlib header inside libcxx at_quick_exit function is not defined
> in the std namespace.
> >
> > Changing the test to use at_quick_exit(f) without the namespace fixes
> the build for me.
> >
> > Is this an oversight or am I missing something?
>
> It sounds like <__config> needs to turn on _LIBCPP_HAS_QUICK_EXIT for your
> platform. Currently <__config> says:
>
> #if defined(__FreeBSD__) && (__ISO_C_VISIBLE >= 2011 || __cplusplus >=
> 201103L)
> #define _LIBCPP_HAS_QUICK_EXIT
>
> Perhaps you could test & submit a patch to fix this?
>
Attached patch fixes the test on Linux for me.
Thanks,
ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130509/a540c1a8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quick_exit_linux.patch
Type: application/octet-stream
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130509/a540c1a8/attachment.obj>
More information about the cfe-dev
mailing list