aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-07-24 19:18:06 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-07-24 19:18:06 +0000
commit9fed97f1bd7cef4729a1c68b111bb6b0dd6f965b (patch)
treed2323d4464ce50e7e75b08ea7b97b88942f305c1
parent87e27392e9c8fcf0305ba1dfb0224f1bb5f637fe (diff)
downloadgcc-9fed97f1bd7cef4729a1c68b111bb6b0dd6f965b.zip
gcc-9fed97f1bd7cef4729a1c68b111bb6b0dd6f965b.tar.gz
gcc-9fed97f1bd7cef4729a1c68b111bb6b0dd6f965b.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000516-1.c18
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000722-1.c24
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000722-1.x3
4 files changed, 33 insertions, 18 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3363143..9fd9423 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000516-1.c b/gcc/testsuite/gcc.c-torture/execute/20000516-1.c
deleted file mode 100644
index 55a6ec1..0000000
--- a/gcc/testsuite/gcc.c-torture/execute/20000516-1.c
+++ /dev/null
@@ -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);
-}
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000722-1.c b/gcc/testsuite/gcc.c-torture/execute/20000722-1.c
new file mode 100644
index 0000000..0ce3191
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20000722-1.c
@@ -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;
+}
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000722-1.x b/gcc/testsuite/gcc.c-torture/execute/20000722-1.x
new file mode 100644
index 0000000..bbad3bb
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20000722-1.x
@@ -0,0 +1,3 @@
+# Doesn't work. Hasn't worked ever, I think.
+set torture_execute_xfail "*-*-*"
+return 0