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++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr51895.C
blob
84ac5e9962f95fe54c98b26ea42adea110e9cc4c
1
// PR middle-end/51895
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct S
6
{
7
long a;
8
char b;
9
S () : a (0), b (0) {}
10
bool baz ();
11
};
12
13
__attribute__((noinline)) static bool
14
bar (S x, S y)
15
{
16
y = x;
17
return y.baz ();
18
}
19
20
bool
21
foo (S x)
22
{
23
S y;
24
return bar (x, y);
25
}