PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / multiple-overflow-warn-1.C
blob5ccc7aff868e3170e9550f86cf40b6b6cf0cd9c4
1 /* PR c/19978 : Test for duplicated warnings (unary operators).  */
2 /* { dg-do compile } */
3 /* { dg-options "-Woverflow -ftrack-macro-expansion=0" } */
5 #include <limits.h>
7 int 
8 g (void)
10   return - - - - -INT_MIN; /* { dg-bogus "integer overflow in expression.*integer overflow in expression" } */
11   /* { dg-warning "integer overflow in expression" "" { target *-*-* } .-1 } */