mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 05:50:26 +08:00
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:
parent
d0ea0759a0
commit
42ab5b2869
@ -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
|
||||
|
19
gcc/testsuite/gcc.dg/pr38615.c
Normal file
19
gcc/testsuite/gcc.dg/pr38615.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user