Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr53633-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 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 static int __attribute__((naked)) | |
7 foo (void) | |
8 { | |
9 __asm__ (""); | |
10 } | |
11 | |
12 static int __attribute__((naked,noreturn)) | |
13 bar (void) | |
14 { | |
15 __asm__ (""); | |
16 } | |
17 | |
18 int foo_caller (void) { return foo (); } | |
19 int bar_caller (void) { return bar (); } |