diff compiler-rt/test/tsan/longjmp4.cpp @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children
line wrap: on
line diff
--- a/compiler-rt/test/tsan/longjmp4.cpp	Wed Jul 21 10:27:27 2021 +0900
+++ b/compiler-rt/test/tsan/longjmp4.cpp	Wed Nov 09 17:45:10 2022 +0900
@@ -20,14 +20,14 @@
   x++;
 }
 
-void badguy() __attribute__((noinline)) {
+__attribute__((noinline)) void badguy() {
   pthread_mutex_t mtx;
   pthread_mutex_init(&mtx, 0);
   pthread_mutex_lock(&mtx);
   pthread_mutex_destroy(&mtx);
 }
 
-void mymain() __attribute__((noinline)) {
+__attribute__((noinline)) void mymain() {
   jmp_buf env;
   if (setjmp(env) == 42) {
     badguy();