repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr49264.C
blob
dc23740f8f93bc6534b20c3f1fddeaed36d490f7
1
// 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
}