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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [pr35602.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR 35602 Bogus warning with -Wsign-conversion
2
// { dg-do compile }
3
// { dg-options "-Wconversion -Wsign-conversion" }
4
struct c
5
{
6
  ~c();
7
  c();
8
};
9
 
10
int
11
 
12
main(const int,
13
     const char * const * const)
14
{
15
  c x[0UL][0UL] =  // { dg-bogus "warning: conversion to .long unsigned int. from .long int. may change the sign of the result" }
16
    {
17
    };
18
 
19
  c y[0UL] =
20
    {
21
    };
22
 
23
  int z[0ul][0UL] =
24
    {
25
    };
26
 
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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