PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / init / pmf1.C
blob93c67bdd70673bc241137f3ebc828eac1faf3d65
1 // PR c++/14089
2 // { dg-do compile }
3 //
4 // C++ front end generated assignment between types that were not
5 // compatible in any sense visible to the optimizers.
7 struct pair {
8     typedef void (pair::*fp)();
9     int first;
10     pair::fp second;
11     pair(const int& a, const pair::fp& b) : first(a), second(b) {}
12     void f(const int& a, const pair::fp& b) { first = a; second = b; }
15 void op() {
16     pair(5, pair::fp());