aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/920608-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/920608-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/920608-1.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/920608-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/920608-1.c
new file mode 100644
index 000000000..cae1978e6
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/920608-1.c
@@ -0,0 +1,25 @@
+foo (p)
+ int *p;
+{
+ int x;
+ int a;
+
+ a = p[0];
+ x = a + 5;
+ a = -1;
+ p[0] = x - 5;
+ return a;
+}
+
+bar (p)
+{
+ short x;
+ int a;
+
+ x = ((short *) p)[1];
+#if INHIBIT_COMBINE
+ ((short *) p)[0] = x;
+#endif
+
+ return (x < 45);
+}