aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-05-12 09:51:20 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-05-12 09:51:20 -0700
commit67384dfba3f4dec04aea2ca1195786c1f1575320 (patch)
treec3a4b24020d1ecb7b0acd9d334d1d428654a6477 /gcc
parenta92fa6087356629b7810c7e8368645b394aba980 (diff)
downloadgcc-67384dfba3f4dec04aea2ca1195786c1f1575320.zip
gcc-67384dfba3f4dec04aea2ca1195786c1f1575320.tar.gz
gcc-67384dfba3f4dec04aea2ca1195786c1f1575320.tar.bz2
990208-1.c (main): Don't pass constants through to doit's conditional.
* gcc.c-torture/execute/990208-1.c (main): Don't pass constants through to doit's conditional. From-SVN: r33878
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/990208-1.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 735b1f8..216623a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-12 Richard Henderson <rth@cygnus.com>
+
+ * gcc.c-torture/execute/990208-1.c (main): Don't pass
+ constants through to doit's conditional.
+
Thu May 11 19:02:43 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/20000511-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/990208-1.c b/gcc/testsuite/gcc.c-torture/execute/990208-1.c
index 37a1147..9d7d714 100644
--- a/gcc/testsuite/gcc.c-torture/execute/990208-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/990208-1.c
@@ -4,6 +4,7 @@
#ifndef NO_LABEL_VALUES
static void *ptr1, *ptr2;
+static int i = 1;
static __inline__ void doit(void **pptr, int cond)
{
@@ -27,9 +28,9 @@ static void bar(void);
int main()
{
- f (1);
+ f (i);
bar();
- g (1);
+ g (i);
#ifdef __OPTIMIZE__
if (ptr1 == ptr2)