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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr38705.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
// PR c++/38705
2
// { dg-do compile }
3
 
4
typedef int T;
5
typedef __SIZE_TYPE__ size_t;
6
extern "C" void *memcpy (void *, const void *, size_t);
7
 
8
void
9
foo (char *p, const int q)
10
{
11
  memcpy (p, &q, sizeof (int));
12
}
13
 
14
struct S
15
{
16
  T t;
17
  int u;
18
  int bar () const;
19
  template  void foo (const T &x) const {}
20
};
21
 
22
int
23
S::bar () const
24
{
25
  foo (u);
26
  foo (t);
27
}

powered by: WebSVN 2.1.0

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