view gcc/testsuite/gcc.dg/torture/builtin-self.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* Check that we can use this idiom to define out-of-line copies of built-in
   functions.  This is used by libgcc/sync.c, for example.  */
void __sync_synchronize (void)
{
  __sync_synchronize ();
}
/* { dg-final { scan-assembler "__sync_synchronize" } } */
/* { dg-final { scan-assembler "\t(lock|mfence)" } } */
/* { dg-final { scan-assembler-not "\tcall" } } */