]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 8 Aug 2005 18:43:10 +0000 (18:43 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 8 Aug 2005 18:43:10 +0000 (18:43 +0000)
'gcc-3_4-branch'.

From-SVN: r102874

gcc/testsuite/gcc.dg/char-compare.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/char-compare.c b/gcc/testsuite/gcc.dg/char-compare.c
new file mode 100644 (file)
index 0000000..f8b2fb9
--- /dev/null
@@ -0,0 +1,23 @@
+/* PR rtl-optimization/23241 */
+/* Origin: Josh Conner <jconner@apple.com> */
+
+/* { dg-do run } */
+/* { dg-options "-O2" } */
+
+extern void abort(void);
+
+struct fbs {
+  unsigned char uc;
+} fbs1 = {255};
+
+void fn(struct fbs *fbs_ptr)
+{
+  if ((fbs_ptr->uc != 255) && (fbs_ptr->uc != 0))
+    abort();
+}
+
+int main(void)
+{
+  fn(&fbs1); 
+  return 0;
+}