comparison gcc/testsuite/g++.dg/cpp0x/depr-copy2.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // PR c++/86342
2 // { dg-options -Wdeprecated-copy }
3
4 # 1 "deprcopy.cc"
5 # 1 "deprcopy.h" 1 3
6
7 struct X {
8 X() { }
9 ~X() { }
10 };
11 # 2 "deprcopy.cc" 2
12
13 int main()
14 {
15 X x;
16 X y = x;
17 }