mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 08:13:58 +08:00
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:
parent
87e27392e9
commit
9fed97f1bd
@ -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.
|
||||
|
@ -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);
|
||||
}
|
24
gcc/testsuite/gcc.c-torture/execute/20000722-1.c
Normal file
24
gcc/testsuite/gcc.c-torture/execute/20000722-1.c
Normal 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;
|
||||
}
|
3
gcc/testsuite/gcc.c-torture/execute/20000722-1.x
Normal file
3
gcc/testsuite/gcc.c-torture/execute/20000722-1.x
Normal file
@ -0,0 +1,3 @@
|
||||
# Doesn't work. Hasn't worked ever, I think.
|
||||
set torture_execute_xfail "*-*-*"
|
||||
return 0
|
Loading…
Reference in New Issue
Block a user