Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/inline-35.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* A function definition of an inline function following a static | |
2 declaration does not make an inline definition in C99/C11 terms. | |
3 PR 57574. */ | |
4 /* { dg-do compile } */ | |
5 /* { dg-options "-std=c99 -pedantic-errors" } */ | |
6 | |
7 static int n; | |
8 | |
9 static inline int f1 (void); | |
10 inline int f1 (void) { return n; } | |
11 | |
12 static int f2 (void); | |
13 inline int f2 (void) { return n; } | |
14 | |
15 static inline int f3 (void); | |
16 int f3 (void) { return n; } | |
17 | |
18 static int f4 (void); | |
19 int f4 (void) { return n; } |