This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFC: Narrowing POINTER_PLUS_EXPR can be a static initializer


Ian Lance Taylor wrote:

> gcc/testsuite/ChangeLog:
> 2008-09-04  Ian Lance Taylor  <iant@google.com>
> 
> 	* g++.dg/init/const7.C: New test.

A random note: you might be able to write a test that does not depend on
looking at GIMPLE tests by having another initializer that runs earlier
(using a constructor priority) that checks to see if the value of the
variable is zero.  If it's zero, it wasn't statically initialized.

FWIW,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]