diff options
author | Jeffrey A Law <law@cygnus.com> | 1997-08-19 07:34:40 +0000 |
---|---|---|
committer | Jeffrey A Law <law@cygnus.com> | 1997-08-19 07:34:40 +0000 |
commit | 78f6ae13813180b99245b321ade25c3213ec7f81 (patch) | |
tree | 335fa7ed68bccaabc938e142eabc167ac296372e /gcc/testsuite/gcc.c-torture/execute/960218-1.c | |
parent | 2fbf616b6e3115dd2835a13f83daee00913fdcbf (diff) |
Initial revision
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/960218-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/960218-1.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/960218-1.c b/gcc/testsuite/gcc.c-torture/execute/960218-1.c new file mode 100644 index 00000000000..7301a17b00d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/960218-1.c @@ -0,0 +1,22 @@ +int glob; + +g (x) +{ + glob = x; + return 0; +} + +f (x) +{ + int a = ~x; + while (a) + a = g (a); +} + +main () +{ + f (3); + if (glob != -4) + abort (); + exit (0); +} |