comparison gcc/testsuite/g++.dg/cpp0x/rv-conv2.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // PR c++/89705
2 // { dg-do compile { target c++11 } }
3
4 struct W { operator const volatile int(); }; // { dg-warning "deprecated" "" { target c++2a } }
5 const int& rci = W();
6
7 struct X { operator const int(); };
8 int&& rri = X();
9
10 struct Y { operator volatile int(); }; // { dg-warning "deprecated" "" { target c++2a } }
11 int&& rri2 = Y();
12
13 struct Z { operator const volatile int(); }; // { dg-warning "deprecated" "" { target c++2a } }
14 volatile int&& rri3 = Z();
15
16 enum E { A };
17 struct S { operator const E(); };
18 E&& rre = S();