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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Winline-4.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2 -Winline" }
3
// Origin: 
4
// PR 17115: We should not emit -Winline warning for functions marked with
5
//  noinline
6
 
7
struct Foo {
8
  __attribute__((noinline)) int a(int r) { return r & 1; }
9
  virtual __attribute__((noinline)) int b(int r) { return r & 1; }
10
  static  __attribute__((noinline)) int c(int r) { return r & 1; }
11
};
12
 
13
int bar(int r) {
14
  Foo f;
15
  int k = 1; k &= f.a(r); k &= f.b(r); k &= f.a(r);
16
  return k;
17
}

powered by: WebSVN 2.1.0

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