* gcc.c-torture/execute/20090219-1.c: New.
From-SVN: r144307
This commit is contained in:
parent
bde8c97ca7
commit
f0de858e7a
2 changed files with 33 additions and 0 deletions
|
@ -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.
|
||||
|
|
29
gcc/testsuite/gcc.c-torture/execute/20090219-1.c
Normal file
29
gcc/testsuite/gcc.c-torture/execute/20090219-1.c
Normal 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);
|
||||
}
|
Loading…
Add table
Reference in a new issue