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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49264
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
struct B { };
6
struct A { char a[sizeof (B) + 1]; } a;
7
 
8
static inline void
9
foo (const B &b)
10
{
11
  __builtin_memcpy (&a, &b, sizeof (b));
12
}
13
 
14
void
15
bar ()
16
{
17
  B c;
18
  foo (c);
19
}

powered by: WebSVN 2.1.0

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