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

Subversion Repositories openrisc

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

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 "-fno-default-inline -O0" }
3
// { dg-final { scan-assembler-not "\n_?_ZN1X3FooIiEEvT_\[: \t\n\]" } }
4
 
5
// Copyright (C) 2003 Free Software Foundation, Inc.
6
// Contributed by Nathan Sidwell 27 Mar 2003 
7
 
8
// PR 10047. bogus warning.
9
 
10
struct X
11
{
12
  template  static void Foo (T)  {}
13
};
14
 
15
extern template void X::Foo (int); // extern, so don't emit it
16
 
17
int main () {
18
  X::Foo (1);  // ok, we've seen the defn
19
}
20
 

powered by: WebSVN 2.1.0

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