URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wfatal-2.c] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-Woverflow -Wdiv-by-zero -Werror -Wfatal-errors" } */ #include <limits.h> int i = INT_MAX + 1; /* { dg-error "integer overflow in expression" } */ int k = 1 / 0; int j = INT_MIN - 1; /* { dg-message "being treated as errors" "" { target *-*-* } 0 } */ /* { dg-message "terminated due to -Wfatal-errors" "" { target *-*-* } 0 } */
Go to most recent revision | Compare with Previous | Blame | View Log