summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ptrmem7.C
blob: 2e6b2db098daf31126319ebf51945297e9f8d737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Jason Merrill <jason@cygnus.com>

struct A {
  int i;
};

template<const int A::* P>
struct B { };

int main()
{
  B<&A::i> b;
}