| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O" } */ // such that static functions are optimized out |
| 3 |
/* { dg-final { scan-assembler "func1" } } */ |
| 4 |
/* { dg-final { scan-assembler "func2" } } */ |
| 5 |
/* { dg-final { scan-assembler-not "func3" } } */ |
| 6 |
/* { dg-final { scan-assembler "func4" } } */ |
| 7 |
/* { dg-final { scan-assembler "func5" } } */ |
| 8 |
|
| 9 |
#undef IN_CLASS |
| 10 |
#define IN_CLASS gnu_test_static |
| 11 |
|
| 12 |
struct IN_CLASS { |
| 13 |
static int func1(void); |
| 14 |
static int func2(void); |
| 15 |
static int func3(void); |
| 16 |
static int func4(void); |
| 17 |
static int func5(void); |
| 18 |
}; |
| 19 |
|
| 20 |
#include "gnu-inline-global.C" |