Sign in
gnu
/
gcc
/
b43d6db9780462273c4d885a0111e3376c114c61
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr36111.c
blob: 498c39e1be49dc7dcd74d3861bc352f293c09e8b [
file
] [
log
] [
blame
]
/* { dg-do compile { target fpic } } */
/* { dg-options "-O2 -fpic" } */
typedef
struct
{
int
lock
;
int
pad0_
;
}
mutex_t
;
static
mutex_t
main_arena
;
void
__malloc_check_init
()
{
for
(;;)
__asm__ __volatile__
(
""
:
"+m"
(
main_arena
.
lock
)
);
}