re PR middle-end/38615 (invalid promotion to static from auto)

PR middle-end/38615
	* gcc.dg/pr38615.c: New test.

From-SVN: r143571
This commit is contained in:
Steve Ellcey 2009-01-22 17:03:35 +00:00 committed by Steve Ellcey
parent d0ea0759a0
commit 42ab5b2869
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-01-22 Steve Ellcey <sje@cup.hp.com>
PR middle-end/38615
* gcc.dg/pr38615.c: New test.
2009-01-22 Uros Bizjak <ubizjak@gmail.com>
PR target/38931

View File

@ -0,0 +1,19 @@
/* { dg-do run } */
int t;
extern void abort (void);
int f(int t, const int *a)
{
const int b[] = { 1, 2, 3};
if (!t)
return f(1, b);
return b == a;
}
int main(void)
{
if (f(0, 0))
abort ();
return 0;
}