aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/pr54442.C
blob: a489565616e618f3037bfce2ab8a7f403f4553b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

struct S
{
  void s (int) const throw ();
  void s (int) throw ();
};

typedef int index_t;

void (S::*f) (index_t)       = &S::s;
void (S::*g) (index_t) const = &S::s;