* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
-#include "config.h"
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
}
for (;;) {
+ int a;
+
pthread_rwlock_rdlock(&lock);
- assert(test_array.a == 8);
+ a = test_array.a;
+ assert(a == 8);
if (caa_unlikely(rduration))
loop_sleep(rduration);
pthread_rwlock_unlock(&lock);