2 /* { dg-final { simulate-thread } } */
5 #include "simulate-thread.h"
7 /* This test verifies writes to globals do not write to adjacent
8 globals. This mostly happens on strict-align targets that are not
9 byte addressable (old Alphas, etc). */
14 void simulate_thread_other_threads()
18 int simulate_thread_step_verify()
22 printf("FAIL: Unexpected value. <b> is %d, should be 77\n", b
);
28 /* Verify that every variable has the correct value. */
29 int simulate_thread_final_verify()
31 int ret
= simulate_thread_step_verify ();
34 printf("FAIL: Unexpected value. <a> is %d, should be 66\n", a
);
40 __attribute__((noinline
))
41 void simulate_thread_main()
48 simulate_thread_main();
49 simulate_thread_done();