Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/winline-10.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
145 | 2 /* { dg-options "-O2 -Winline -fopt-info-optimized-inline=stderr" } */ |
111 | 3 |
4 struct s { int a; }; | |
5 | |
145 | 6 inline void f (x) |
111 | 7 int x; |
8 { | |
9 asm (""); | |
10 } | |
11 | |
12 void g (struct s x) | |
13 { | |
145 | 14 f (x); /* { dg-optimized "Inlining f.* into g" } */ |
111 | 15 } |
16 | |
17 void f (int x); /* { dg-warning "follows non-prototype definition" } */ |