OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [gnu-inline-class-static.C] - Blame information for rev 696

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { 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"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.