mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 15:45:21 +08:00
New test.
From-SVN: r50012
This commit is contained in:
parent
8041889f44
commit
11a35b8bb1
@ -1,3 +1,7 @@
|
||||
2002-02-25 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* gcc.c-torture/execute/20020225-1.c: New.
|
||||
|
||||
2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* testsuite/gcc.dg/cpp/wchar-1.c: New test.
|
||||
|
17
gcc/testsuite/gcc.c-torture/execute/20020225-1.c
Normal file
17
gcc/testsuite/gcc.c-torture/execute/20020225-1.c
Normal file
@ -0,0 +1,17 @@
|
||||
/* This testcase failed at -O2 on powerpc64 due to andsi3 writing
|
||||
non-zero bits to the high 32 bits of a 64 bit register. */
|
||||
|
||||
extern void abort (void);
|
||||
extern void exit (int);
|
||||
|
||||
unsigned long foo (unsigned long base, unsigned int val)
|
||||
{
|
||||
return base + (val & 0x80000001);
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
if (foo (0L, 0x0ffffff0) != 0L)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user