* gcc.c-torture/compile/20010711-1.c,
* gcc.c-torture/compile/20010711-2.c: New tests. From-SVN: r43934
This commit is contained in:
parent
bd77ba510b
commit
0e41fb04c0
@ -1,3 +1,8 @@
|
||||
2001-07-11 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* gcc.c-torture/compile/20010711-1.c,
|
||||
* gcc.c-torture/compile/20010711-2.c: New tests.
|
||||
|
||||
2001-07-11 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20010711-1.c: New test.
|
||||
|
11
gcc/testsuite/gcc.c-torture/compile/20010711-1.c
Normal file
11
gcc/testsuite/gcc.c-torture/compile/20010711-1.c
Normal file
@ -0,0 +1,11 @@
|
||||
typedef unsigned long long value;
|
||||
|
||||
void foo (value *v) {}
|
||||
|
||||
void test ()
|
||||
{
|
||||
value v;
|
||||
foo (&v);
|
||||
if (v-- > 0)
|
||||
foo (&v);
|
||||
}
|
11
gcc/testsuite/gcc.c-torture/compile/20010711-2.c
Normal file
11
gcc/testsuite/gcc.c-torture/compile/20010711-2.c
Normal file
@ -0,0 +1,11 @@
|
||||
typedef unsigned long long value;
|
||||
|
||||
void foo (value *v) {}
|
||||
|
||||
void test ()
|
||||
{
|
||||
value v;
|
||||
foo (&v);
|
||||
if (v-- == 1)
|
||||
foo (&v);
|
||||
}
|
Loading…
Reference in New Issue
Block a user