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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [pr35602.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR 35602 Bogus warning with -Wsign-conversion
// PR 35602 Bogus warning with -Wsign-conversion
// { dg-do compile }
// { dg-do compile }
// { dg-options "-Wconversion -Wsign-conversion" }
// { dg-options "-Wconversion -Wsign-conversion" }
struct c
struct c
{
{
  ~c();
  ~c();
  c();
  c();
};
};
int
int
main(const int,
main(const int,
     const char * const * const)
     const char * const * const)
{
{
  c x[0UL][0UL] =  // { dg-bogus "warning: conversion to .long unsigned int. from .long int. may change the sign of the result" }
  c x[0UL][0UL] =  // { dg-bogus "warning: conversion to .long unsigned int. from .long int. may change the sign of the result" }
    {
    {
    };
    };
  c y[0UL] =
  c y[0UL] =
    {
    {
    };
    };
  int z[0ul][0UL] =
  int z[0ul][0UL] =
    {
    {
    };
    };
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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