OpenCores
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/] [multiple-overflow-warn-2.c] - Blame information for rev 318

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* 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 *-*-* } 10 } */
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.