* gcc.c-torture/execute/pr28289.c: New test.
From-SVN: r116224
This commit is contained in:
parent
343d4b27bf
commit
25ff07eb3a
2 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-08-17 J"orn Rennecke <joern.rennecke@st.com>
|
||||
|
||||
* gcc.c-torture/execute/pr28289.c: New test.
|
||||
|
||||
2006-08-17 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c/28744
|
||||
|
|
32
gcc/testsuite/gcc.c-torture/execute/pr28289.c
Normal file
32
gcc/testsuite/gcc.c-torture/execute/pr28289.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
extern int ok (int);
|
||||
extern void exit ();
|
||||
static int gen_x86_64_shrd (int);
|
||||
static int
|
||||
gen_x86_64_shrd(int a __attribute__ ((__unused__)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern int gen_x86_shrd_1 (int);
|
||||
extern void ix86_split_ashr (int);
|
||||
|
||||
void
|
||||
ix86_split_ashr (int mode)
|
||||
{
|
||||
(mode != 0
|
||||
? ok
|
||||
: gen_x86_64_shrd) (0);
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
ix86_split_ashr (argc);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
ok (int i)
|
||||
{
|
||||
exit (i);
|
||||
}
|
Loading…
Add table
Reference in a new issue