[cfe-dev] Sema/return.c test problem on Windows

John Thompson john.thompson.jtsoftware at gmail.com
Wed Oct 28 15:15:42 PDT 2009


There's no _longjmp defined in MSVC.  Here's one way to fix the failing
Sema/return.c test:

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091028/8c859c13/attachment.html>


More information about the cfe-dev mailing list