aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr42717.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-01-24 10:36:49 +0000
committerJan Hubicka <jh@suse.cz>2010-01-24 10:36:49 +0000
commite9fc1a6f86ca7b860854fee0ba9b33dfe5f93c63 (patch)
treedcf236316723541fe267b3437aa3779930381fe0 /gcc/testsuite/gcc.c-torture/compile/pr42717.c
parent4f5058063ea01ff1d1c475ffe9ed8a30eaa6ef8b (diff)
Merge.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/pretty-ipa@156196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr42717.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr42717.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr42717.c b/gcc/testsuite/gcc.c-torture/compile/pr42717.c
new file mode 100644
index 00000000000..4fe6f93e797
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr42717.c
@@ -0,0 +1,30 @@
+static signed char
+foo (signed char si1, unsigned char si2)
+{
+ return (si1 ^ si2) & (-si2 ^ si2) ? : si1 - si2;
+}
+
+struct S0
+{
+};
+
+unsigned char g_21;
+
+struct S0 g_34;
+
+void
+bar (unsigned char p_20)
+{
+ unsigned char *l_22 = &g_21;
+ unsigned char l_23 = 0;
+ struct S0 *l = &g_34;
+ goto lbl_42;
+ for (; l_23; l_23 = foo (l_23, 1))
+ {
+ for (p_20 = 0; 0; p_20 = foo (p_20, 1))
+ lbl_42:;
+ (l == &g_34) ? 0 : "";
+lbl_85:*l_22 = p_20;
+ }
+ goto lbl_85;
+}