Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr57438-1.c @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile { target *-*-darwin* } } */ /* { dg-options "-O1" } */ /* { dg-additional-options "-mdynamic-no-pic" { target powerpc*-*-darwin* } } /* This is testing that a completely empty function body results in the insertion of a ud2/trap instruction to prevent a zero-sized FDE, and/or the function label apparently pointing to following code. */ __attribute__((noinline)) void foo (void) { __builtin_unreachable(); } /* { dg-final { scan-assembler "ud2" { target { i?86-*-darwin* x86_64-*-darwin* } } } } */ /* { dg-final { scan-assembler "trap" { target { powerpc*-*-darwin* } } } } */