blob: c6401d109b464fd290376b5a5527b1fef5134b6c [file] [log] [blame]
// PR c++/94190 - wrong no post-decrement operator error in template.
struct S { operator long & (); } b;
template<int> void
foo ()
{
b--;
++b;
--b;
b++;
!b;
~b;
+b;
-b;
}
void
bar ()
{
foo<0> ();
}