* gcc.c-torture/execute/20090219-1.c: New.

From-SVN: r144307
This commit is contained in:
Kazu Hirata 2009-02-19 21:33:38 +00:00 committed by Kazu Hirata
parent bde8c97ca7
commit f0de858e7a
2 changed files with 33 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2009-02-19 Kazu Hirata <kazu@codesourcery.com>
* gcc.c-torture/execute/20090219-1.c: New.
2009-02-19 Adam Nemet <anemet@caviumnetworks.com>
* gcc.target/mips/mips.exp: Comment !CPU in the isa* pseudo-options.

View file

@ -0,0 +1,29 @@
/* On ARM, BAR used to get a bogus number in E due to stack
misalignment. */
extern void abort (void);
extern void exit (int);
void
foo (void)
{
int f = 0;
void bar (int a, int b, int c, int d, int e)
{
if (e != 0)
{
f = 1;
abort ();
}
}
bar (0, 0, 0, 0, 0);
}
int
main (void)
{
foo ();
exit (0);
}