summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/badarrow.C
blob: 6e7578d1db9aa1a247fa4d800697fe0f82eb0791 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }

struct S { 
  int i;
} s;

void f()
{
  s->i = 3; // { dg-error "" } base operand
}