20000717-1.c: New test.
* gcc.c-torture/execute/20000717-1.c: New test. * gcc.c-torture/execute/20000717-1.x: Expected to fail. From-SVN: r35067
This commit is contained in:
parent
4b1a29d9c8
commit
74d6e0737f
|
@ -1,3 +1,8 @@
|
|||
Mon Jul 17 00:41:57 2000 Greg McGary <greg@mcgary.org>
|
||||
|
||||
* gcc.c-torture/execute/20000717-1.c: New test.
|
||||
* gcc.c-torture/execute/20000717-1.x: Expected to fail.
|
||||
|
||||
2000-07-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20000715-2.c: New test.
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
typedef struct trio { int a, b, c; } trio;
|
||||
|
||||
int
|
||||
bar (int i, trio t)
|
||||
{
|
||||
if (t.a == t.b || t.a == t.c)
|
||||
abort ();
|
||||
}
|
||||
|
||||
int
|
||||
foo (trio t, int i)
|
||||
{
|
||||
return bar (i, t);
|
||||
}
|
||||
|
||||
main ()
|
||||
{
|
||||
trio t = { 1, 2, 3 };
|
||||
|
||||
foo (t, 4);
|
||||
exit (0);
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
set torture_execute_xfail "*-*-*"
|
||||
|
||||
return 0
|
Loading…
Reference in New Issue