On Wed, 27 Apr 2011, Kaz Kojima wrote:

> "Joseph S. Myers" <jos...@codesourcery.com> wrote:
> > I think you should add a testcase to gcc.c-torture/compile, unless there 
> > is already one that this patch fixes.
> 
> Ah, indeed.  How about the attached testcase?

Yes, that testcase looks like what I had in mind, but you don't need the 
dg-* directives (the defaults in gcc.c-torture/compile should be fine).

> BTW, is it valid C?

I think this should be considered the same as passing a type such as 
"short" that can never be the promoted argument type: undefined behavior 
at runtime if the call is executed.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to