PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr35602.C
blob66a569b3d272c2addd22eb4c1f8827e5c9f4e07e
1 // PR 35602 Bogus warning with -Wsign-conversion
2 // { dg-do compile }
3 // { dg-options "-Wconversion -Wsign-conversion" }
4 struct c
6   ~c();
7   c();
8 };
10 int
12 main(const int,
13      const char * const * const)
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;