1// { dg-do assemble  }
2// Here is a simple one.  GCC correctly gives errors for this code when the
3// - -pedantic-errors option is used, whereas g++ doesn't.
4
5
6int (*p1)[3];
7int (*p2)[5];
8
9void
10test ()
11{
12  p1 == p2;		// { dg-error "comparison between distinct pointer types" } comparison.*
13  p1 > p2;		// { dg-error "comparison between distinct pointer types" } comparison.*
14}
15