[cfe-dev] Sema/return.c test problem on Windows
Chris Lattner
clattner at apple.com
Wed Oct 28 16:37:38 PDT 2009
On Oct 28, 2009, at 3:15 PM, John Thompson wrote:
> There's no _longjmp defined in MSVC. Here's one way to fix the
> failing Sema/return.c test:
Sure, works for me.
>
> Index: Sema/return.c
> ===================================================================
> --- Sema/return.c (revision 85400)
> +++ Sema/return.c (working copy)
> @@ -203,7 +203,11 @@
> if (j)
> longjmp(test30_j, 1);
> else
> +#if defined(_WIN32) || defined(_WIN64)
> + longjmp(test30_j, 2);
> +#else
> _longjmp(test30_j, 1);
> +#endif
> }
> typedef void test31_t(int status);
>
>
> --
> John Thompson
> John.Thompson.JTSoftware at gmail.com
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091028/34662d0f/attachment.html>
More information about the cfe-dev
mailing list