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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [inline4.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do run  }
2
// GROUPS passed inlining
3
// inline file
4
// Message-Id: <9306020823.AA14027@joker>
5
// From: stefan@mpi-sb.mpg.de
6
// Subject: gcc-2.4.2  template function bug  (1)
7
// Date: Wed, 2 Jun 93 10:23:14 +0200
8
 
9
extern "C" int printf (const char *, ...);
10
 
11
template  inline T func(const T& x) { return x; }
12
 
13
inline int func(const int& x) { return x; }
14
 
15
 
16
int main()
17
{ int x;
18
  func(x);
19
  printf ("PASS\n");
20
 }
21
 

powered by: WebSVN 2.1.0

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