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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [inline1.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do compile }
// { dg-do compile }
// Copyright (C) 2002 Free Software Foundation, Inc.
// Copyright (C) 2002 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Dec 2002 
// Contributed by Nathan Sidwell 26 Dec 2002 
// PR 4803. Used inline functions must have a definition.
// PR 4803. Used inline functions must have a definition.
inline void Foo1 ();  // { dg-warning "inline function" "" }
inline void Foo1 ();  // { dg-warning "inline function" "" }
inline void Bar1 ();
inline void Bar1 ();
template  inline void Foo2(T);   // { dg-warning "inline function" "" }
template  inline void Foo2(T);   // { dg-warning "inline function" "" }
template  inline void Bar2(T);
template  inline void Bar2(T);
void Baz ()
void Baz ()
{
{
  Foo1 ();
  Foo1 ();
  Foo2 (1);
  Foo2 (1);
  Bar1 ();
  Bar1 ();
  Bar2 (1);
  Bar2 (1);
}
}
inline void Bar1 () {}
inline void Bar1 () {}
template  inline void Bar2(T) {}
template  inline void Bar2(T) {}
 
 

powered by: WebSVN 2.1.0

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