]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 30 May 2002 23:13:20 +0000 (23:13 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 30 May 2002 23:13:20 +0000 (23:13 +0000)
'gcc-3_1-branch'.

From-SVN: r54077

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

diff --git a/gcc/testsuite/gcc.c-torture/compile/20020530-1.c b/gcc/testsuite/gcc.c-torture/compile/20020530-1.c
new file mode 100644 (file)
index 0000000..a679489
--- /dev/null
@@ -0,0 +1,16 @@
+/* PR optimization/6822 */
+
+extern unsigned char foo1 (void);
+extern unsigned short foo2 (void);
+
+int bar1 (void)
+{
+  unsigned char q = foo1 ();
+  return (q < 0x80) ? 64 : 0;
+}
+
+int bar2 (void)
+{
+  unsigned short h = foo2 ();
+  return (h < 0x8000) ? 64 : 0;
+}