summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/arm1.C
blob: 5cd4088a419d3f1d484d5ee9227dec6d8d9721e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// { dg-options "-pedantic-errors" }
// GROUPS passed ARM-compliance
// ARM $5.7, it's illegal to do math on a `void*'.

int
main()
{
  void *p;
  ++p;// { dg-error "" } .*
}