[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr57438-1.c
blob9bfd8b9d9111153f5b3147b7d4dda57f7d4e86e5
1 /* { dg-do compile { target *-*-darwin* } } */
2 /* { dg-options "-O1" } */
3 /* { dg-additional-options "-mdynamic-no-pic" { target powerpc*-*-darwin* } }
5 /* This is testing that a completely empty function body results in the
6 insertion of a ud2/trap instruction to prevent a zero-sized FDE, and/or
7 the function label apparently pointing to following code. */
9 __attribute__((noinline))
10 void foo (void)
12 __builtin_unreachable();
15 /* { dg-final { scan-assembler "ud2" { target { i?86-*-darwin* x86_64-*-darwin* } } } } */
16 /* { dg-final { scan-assembler "trap" { target { powerpc*-*-darwin* } } } } */