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
2011-05-23 Jonathan Wakely <jwakely.gcc@gmail.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr18016.C
1
/* { dg-do compile } */
2
/* { dg-options "-Wuninitialized -Winit-self" } */
3
4
class X {
5
int i;
6
X() : i(i) { } // { dg-warning "initialized with itself" }
7
X(int i) : i(i) { }
8
X(const X& x) : i(x.i) { }
9
};
10
11
// { dg-prune-output "In constructor" }