* gcc.c-torture/execute/20020611-1.c: New test.
From-SVN: r54541
This commit is contained in:
parent
1c0ca89ddb
commit
6debb0064e
2 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-06-12 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* gcc.c-torture/execute/20020611-1.c: New test.
|
||||
|
||||
2002-06-11 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
|
||||
|
|
32
gcc/testsuite/gcc.c-torture/execute/20020611-1.c
Normal file
32
gcc/testsuite/gcc.c-torture/execute/20020611-1.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/* PR target/6997. Missing (set_attr "cc" "none") in sleu pattern in
|
||||
cris.md. Testcase from hp@axis.com. */
|
||||
|
||||
int p;
|
||||
int k;
|
||||
unsigned int n;
|
||||
|
||||
void x ()
|
||||
{
|
||||
unsigned int h;
|
||||
|
||||
h = n <= 30;
|
||||
if (h)
|
||||
p = 1;
|
||||
else
|
||||
p = 0;
|
||||
|
||||
if (h)
|
||||
k = 1;
|
||||
else
|
||||
k = 0;
|
||||
}
|
||||
|
||||
unsigned int n = 30;
|
||||
|
||||
main ()
|
||||
{
|
||||
x ();
|
||||
if (p != 1 || k != 1)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Add table
Reference in a new issue