1 /* { dg-options "-O2 -msoft-stack" } */
4 static __attribute__((noinline
,noclone
)) int f(int *p
)
6 return __sync_lock_test_and_set(p
, 1);
9 static __attribute__((noinline
,noclone
)) int g(int n
)
11 /* Check that variable-length stack allocation works. */
14 /* Check that atomic operations can be applied to auto data. */
15 return f(v
) == 0 && v
[0] == 1;