[test-suite] r193961 - PR10189 appears to be fixed.

Bill Wendling isanbard at gmail.com
Sun Nov 3 09:25:26 PST 2013


Author: void
Date: Sun Nov  3 11:25:25 2013
New Revision: 193961

URL: http://llvm.org/viewvc/llvm-project?rev=193961&view=rev
Log:
PR10189 appears to be fixed.

Add this as a testcase for PR10189. It appears to be fixed now, but we don't
want it to regress.

Added:
    test-suite/trunk/SingleSource/Regression/C/PR10189.c
    test-suite/trunk/SingleSource/Regression/C/PR10189.reference_output

Added: test-suite/trunk/SingleSource/Regression/C/PR10189.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/PR10189.c?rev=193961&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/PR10189.c (added)
+++ test-suite/trunk/SingleSource/Regression/C/PR10189.c Sun Nov  3 11:25:25 2013
@@ -0,0 +1,81 @@
+unsigned short
+safe_53 (int short ui1, int short ui2)
+{
+  return ui1 - ui2;
+}
+
+int short
+safe_60 (int short left, int right)
+{
+  return right ? 0 : left >> right;
+}
+
+struct S0
+{
+  int f;
+};
+
+struct S1
+{
+  int f3;
+};
+
+struct S2
+{
+  volatile struct S0 f2;
+};
+
+struct S3
+{
+  int f;
+};
+
+int short g_8;
+int g_20[][1][0];
+int g_37;
+
+struct S2 g_6;
+
+struct S3 g_169;
+
+struct S1 g_177;
+struct S2 g_1639[];
+
+char func_13 (unsigned, unsigned short, short);
+
+char func_21 (unsigned char, unsigned, int *);
+
+struct S2 func_1 (vo)
+{
+  int l_2 = 1;
+  l_2 && func_13 (0, 0, 0), 0;
+  return g_1639[0];
+}
+
+char func_13 (unsigned p_, unsigned short p_15, short p_1)
+{
+  int l_346;
+  int *l_701 = &g_37;
+  for (l_346 = 2; l_346 >= 0; l_346 -= 1)
+    {
+      for (; g_177.f3; g_177.f3 += 1);
+      for (p_15 = 0; p_15 <= 2; p_15 += 1)
+	*l_701 = safe_60 (g_6.f2.f, func_21 (g_169.f, 0, 0)) > 0;
+    }
+  return 0;
+}
+
+char
+func_21 (unsigned char p_, unsigned p_2, int *p_24)
+{
+  int *l_30 = &g_20[0][0][1];
+  int **l_29 = &l_30;
+  **l_29 = safe_53 (*l_30, g_8);
+  return **l_29;
+}
+
+int mn (void)
+{
+  func_1 ();
+  return 0;
+}

Added: test-suite/trunk/SingleSource/Regression/C/PR10189.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Regression/C/PR10189.reference_output?rev=193961&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/Regression/C/PR10189.reference_output (added)
+++ test-suite/trunk/SingleSource/Regression/C/PR10189.reference_output Sun Nov  3 11:25:25 2013
@@ -0,0 +1 @@
+exit 0





More information about the llvm-commits mailing list