OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [multiple-overflow-warn-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 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.