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:
Greg McGary 2000-07-17 06:41:49 +00:00 committed by Jeff Law
parent 4b1a29d9c8
commit 74d6e0737f
3 changed files with 30 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}

View File

@ -0,0 +1,3 @@
set torture_execute_xfail "*-*-*"
return 0