aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/optim/cse-size.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/optim/cse-size.c b/validation/optim/cse-size.c
new file mode 100644
index 00000000..b75e4bfe
--- /dev/null
+++ b/validation/optim/cse-size.c
@@ -0,0 +1,18 @@
+static void foo(void)
+{
+ unsigned p = 0;
+ long x;
+
+ for (;;)
+ if (p)
+ p = x;
+}
+
+/*
+ * check-name: cse-size
+ * check-command: test-linearize -Wno-decl $file
+ *
+ * check-output-ignore
+ * check-output-excludes: phi\\.
+ * check-output-excludes: phisrc\\.
+ */