Skip to content

Commit

Permalink
test/call_once_seh_exceptional: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Nov 15, 2024
1 parent 0bb0e82 commit 298fce6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/call_once_seh_exceptional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
* LICENSE.TXT as a whole. The GCC Runtime Library Exception applies
* to this file. */

#if !defined __SEH__ && !defined _MSC_VER
int
main(void)
{
return 77;
}
#else // __SEH__

#include "../mcfgthread/cxx11.hpp"
#include "../mcfgthread/sem.h"
#include <assert.h>
Expand Down Expand Up @@ -58,10 +66,6 @@ thread_proc()
int
main(void)
{
#if !defined __SEH__ && !defined _MSC_VER
return 77; // not supported
#endif

for(auto& thr : threads)
thr = NS::thread(thread_proc);

Expand All @@ -73,3 +77,5 @@ main(void)

assert(resource == NTHREADS);
}

#endif // __SEH__

0 comments on commit 298fce6

Please sign in to comment.