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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr51262.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-require-effective-target lto }
3
// { dg-options "-flto -g" }
4
 
5
template < typename > void *
6
bar (int *p)
7
{
8
  union
9
    {
10
      int *p;
11
    }
12
  u;
13
  u.p = p;
14
  return u.p;
15
}
16
 
17
void
18
foo (int *p)
19
{
20
  bar < void >(p);
21
}

powered by: WebSVN 2.1.0

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