OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-02-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr38705.C
1
// 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 <class T> void foo (const T &x) const {}
20
};
21
22
int
23
S::bar () const
24
{
25
foo (u);
26
foo (t);
27
}