OSDN Git Service

2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / overflow-warn-5.C
1 /* PR c/27273 */
2 /* { dg-do compile } */
3 /* { dg-options "-Woverflow" } */
4
5 unsigned char rx_async(unsigned char p) {
6     return p & 512; /* { dg-warning "overflow in implicit constant conversion" } */
7 }
8 /* PR c/27273 */
9 /* { dg-do compile } */
10 /* { dg-options "-Woverflow" } */
11
12 unsigned char rx_async(unsigned char p) {
13     return p & 512; /* { dg-warning "overflow in implicit constant conversion" } */
14 }
15 /* PR c/27273 */
16 /* { dg-do compile } */
17 /* { dg-options "-Woverflow" } */
18
19 unsigned char rx_async(unsigned char p) {
20     return p & 512; /* { dg-warning "overflow in implicit constant conversion" } */
21 }