20000722-1.x: New, testcase fails.

* gcc.c-torture/execute/20000722-1.x: New, testcase fails.
* gcc.c-torture/execute/20000722-1.c: New.
* gcc.c-torture/execute/20000516-1.c: Delete, replaced by 20000722-1.

From-SVN: r35234
This commit is contained in:
Geoff Keating 2000-07-24 19:18:06 +00:00 committed by Geoffrey Keating
parent 87e27392e9
commit 9fed97f1bd
4 changed files with 33 additions and 18 deletions

View File

@ -1,3 +1,9 @@
2000-07-24 Geoff Keating <geoffk@cygnus.com>
* gcc.c-torture/execute/20000722-1.x: New, testcase fails.
* gcc.c-torture/execute/20000722-1.c: New.
* gcc.c-torture/execute/20000516-1.c: Delete, replaced by 20000722-1.
2000-07-24 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/cpp/20000720-1.S: New test.

View File

@ -1,18 +0,0 @@
struct test_type
{
int value;
char *string;
};
void
callout (struct test_type *test_data)
{
test_data->string = "ho there";
}
int main ()
{
callout (&(struct test_type) { 3, "hey there" });
exit (0);
}

View File

@ -0,0 +1,24 @@
struct s { char *p; int t; };
extern void bar (void);
extern void foo (struct s *);
int main(void)
{
bar ();
bar ();
exit (0);
}
void
bar (void)
{
foo (& (struct s) { "hi", 1 });
}
void foo (struct s *p)
{
if (p->t != 1)
abort();
p->t = 2;
}

View File

@ -0,0 +1,3 @@
# Doesn't work. Hasn't worked ever, I think.
set torture_execute_xfail "*-*-*"
return 0