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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Winline-4.C] - Rev 693

Compare with Previous | Blame | View Log

// { dg-do compile }
// { dg-options "-O2 -Winline" }
// Origin: <markus at oberhumer dot com>
// PR 17115: We should not emit -Winline warning for functions marked with
//  noinline

struct Foo {
  __attribute__((noinline)) int a(int r) { return r & 1; }
  virtual __attribute__((noinline)) int b(int r) { return r & 1; }
  static  __attribute__((noinline)) int c(int r) { return r & 1; }
};

int bar(int r) {
  Foo f;
  int k = 1; k &= f.a(r); k &= f.b(r); k &= f.a(r);
  return k;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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