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
Fold ctz(-x) and ctz(abs(x)) as ctz(x) in match.pd.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
guality
/
pr46815.C
blob
41b9219955d857931310330c5230ae31fb24a1a7
1
// PR debug/46815
2
// { dg-do run }
3
// { dg-options "-g" }
4
// { dg-skip-if "" { *-*-* } { "*" } { "-O0" } }
5
6
struct S
7
{
8
int i;
9
S () { i = 42; }
10
virtual void foo (void) {}
11
};
12
13
S
14
bar ()
15
{
16
S s;
17
return s; // { dg-final { gdb-test 17 "s.i" "42" } }
18
}
19
20
int
21
main ()
22
{
23
S s = bar ();
24
return s.i - 42;
25
}