PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / overload / rvalue2.C
blob8a2290dc293572977fce4cc63355a7a9103f6e2c
1 // PR c++/49812
2 // The call should choose the second f because i++ is an int rvalue.
4 template <class T> void f(const volatile T& t) { t.i; }
5 template <class T> void f(const T&);
7 int main()
9   volatile int i = 0;
10   f(i++);