comparison gcc/testsuite/g++.dg/conversion/op7.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
18:1830386684a0 19:2b5abeee2509
1 // PR c++/94190 - wrong no post-decrement operator error in template.
2
3 struct S { operator long & (); } b;
4
5 template<int> void
6 foo ()
7 {
8 b--;
9 ++b;
10 --b;
11 b++;
12 !b;
13 ~b;
14 +b;
15 -b;
16 }
17
18 void
19 bar ()
20 {
21 foo<0> ();
22 }