Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr53633.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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) | |
8 { | |
9 __asm__ (""); | |
10 } | |
11 | |
12 int __attribute__((naked,noreturn)) | |
13 bar(void) | |
14 { | |
15 __asm__ (""); | |
16 } |