]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
*** empty log message ***
authorChandra Chavva <cchavva@gcc.gnu.org>
Fri, 18 Feb 2000 20:56:47 +0000 (15:56 -0500)
committerChandra Chavva <cchavva@gcc.gnu.org>
Fri, 18 Feb 2000 20:56:47 +0000 (15:56 -0500)
From-SVN: r32054

gcc/testsuite/gcc.c-torture/execute/20000217-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20000217-1.c b/gcc/testsuite/gcc.c-torture/execute/20000217-1.c
new file mode 100644 (file)
index 0000000..6763da7
--- /dev/null
@@ -0,0 +1,17 @@
+unsigned short int showbug(unsigned short int *a, unsigned short int *b)
+{
+        *a += *b -8;
+        return (*a >= 8);
+}
+
+int main()
+{
+        unsigned short int x = 0;
+        unsigned short int y = 10;
+
+        if (showbug(&x, &y) != 0)
+         abort (0);
+
+       exit (0);
+}
+