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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [array13.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/20208
2
// { dg-do run }
3
// { dg-options "-O2" }
4
 
5
extern "C" void abort();
6
 
7
template 
8
inline void *Foo (T arg) { return &arg[0]; }
9
 
10
int main () {
11
  int bry[2];
12
  if (Foo(bry) != bry)
13
    abort();
14
}

powered by: WebSVN 2.1.0

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