Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.rfg / 00321_01-.C
blobdcc607e329aec1ac02535f196866fc4255c9e4f0
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.
6 int (*p1)[3];
7 int (*p2)[5];
9 void
10 test ()
12   p1 == p2;             // { dg-error "comparison between distinct pointer types" } comparison.*
13   p1 > p2;              // { dg-error "comparison between distinct pointer types" } comparison.*