New test from Joern.
From-SVN: r19552
This commit is contained in:
parent
7f2ef0e723
commit
9d1bcb4667
1 changed files with 22 additions and 0 deletions
22
gcc/testsuite/gcc.c-torture/execute/980505-2.c
Normal file
22
gcc/testsuite/gcc.c-torture/execute/980505-2.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
typedef unsigned short Uint16;
|
||||
typedef unsigned int Uint;
|
||||
|
||||
Uint f ()
|
||||
{
|
||||
Uint16 token;
|
||||
Uint count;
|
||||
static Uint16 values[1] = {0x9300};
|
||||
|
||||
token = values[0];
|
||||
count = token >> 8;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
if (f () != 0x93)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Add table
Reference in a new issue