Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/pr35602.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR 35602 Bogus warning with -Wsign-conversion // { dg-do compile } // { dg-options "-Wconversion -Wsign-conversion" } struct c { ~c(); c(); }; int main(const int, 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 y[0UL] = { }; int z[0ul][0UL] = { }; return 0; }