Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/builtin-self.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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" } } */