* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr70869.C
blob84c532b677279b7b9f07f50ba1350bad4a7d2397
1 // PR c++/70869
2 // { dg-do run { target c++11 } }
4 #include <initializer_list>
6 struct A
8   int f () { return 1; }
9   int g () { return 2; }
10   int h () { return 3; }
13 int
14 main ()
16   int cnt = 0;
17   for (const auto &m : { &A::f, &A::g, &A::h })
18     {
19       A a;
20       if ((a.*m) () != ++cnt)
21         __builtin_abort ();
22     }
23   if (cnt != 3)
24     __builtin_abort ();