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 middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr82899.C
blob
0dee25f36e4547fddc1f17dcdcbc8bb74131fd36
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-optimized" } */
3
4
struct A {
5
int i;
6
A(A&);
7
};
8
int X;
9
A::A(A&a):i(42){
10
a.i=0;
11
X=i;
12
}
13
14
/* { dg-final { scan-tree-dump "X = 42;" "optimized" } } */