[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / c-c++-common / pr53633.c
blobdb7e1ceb82bb77110b924128217ca3b9eea588e3
1 /* { dg-do compile } */
2 /* { dg-require-effective-target naked_functions } */
3 /* { dg-options "-O2 -Wall" } */
4 /* Check that we do not get warnings about missing return statements
5 or bogus looking noreturn functions. */
6 int __attribute__((naked))
7 foo(void)
9 __asm__ ("");
12 int __attribute__((naked,noreturn))
13 bar(void)
15 __asm__ ("");