aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031125-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031125-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031125-2.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031125-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031125-2.c
new file mode 100644
index 000000000..fc16051a2
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20031125-2.c
@@ -0,0 +1,18 @@
+struct BlobSpan {
+ int right;
+};
+/* This test makes sure we don't accidentally cause a bad insertion to occur
+ by choosing the wrong variable name so that we end up with a use not
+ dominated by a def. */
+void render_blob_line(struct BlobSpan blobdata) {
+ int buf[4 * 8];
+ int *data = buf;
+ int i, n = 0;
+ if (blobdata.right)
+ n++;
+ if (n)
+ for (; i < 2 * n;)
+ data[i] = 0;
+ n *= 2;
+ for (; n;) ;
+}