Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/multiple-overflow-warn-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/19978 : Test for duplicated warnings (binary operators). */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-std=c99 -Woverflow" } */ | |
4 | |
5 #include <limits.h> | |
6 | |
7 int | |
8 g1 (void) | |
9 { | |
10 return INT_MAX + 1 - INT_MAX; /* { dg-bogus "integer overflow in expression.*integer overflow in expression" } */ | |
11 /* { dg-warning "integer overflow in expression" "" { target *-*-* } .-1 } */ | |
12 } |