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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [inline1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 26 Dec 2002 
5
 
6
// PR 4803. Used inline functions must have a definition.
7
 
8
inline void Foo1 ();  // { dg-warning "inline function" "" }
9
inline void Bar1 ();
10
template  inline void Foo2(T);   // { dg-warning "inline function" "" }
11
template  inline void Bar2(T);
12
 
13
void Baz ()
14
{
15
  Foo1 ();
16
  Foo2 (1);
17
 
18
  Bar1 ();
19
  Bar2 (1);
20
}
21
 
22
inline void Bar1 () {}
23
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.