summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/ptrmem5.C
blob: 75a78b2f17be79c714be1db3dee96411d92025fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR 14123

struct a
{
  int x[8];
};

int main()
{
  int a::*n[8];
  n = &a::x;                    // { dg-error "int \\(a::\\*\\)" }
}