aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/reassoc-op-op1.c
diff options
Diffstat (limited to 'validation/optim/reassoc-op-op1.c')
-rw-r--r--validation/optim/reassoc-op-op1.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/optim/reassoc-op-op1.c b/validation/optim/reassoc-op-op1.c
new file mode 100644
index 00000000..aa7092ff
--- /dev/null
+++ b/validation/optim/reassoc-op-op1.c
@@ -0,0 +1,15 @@
+int foo(int x, int *ptr)
+{
+ int t = x + 1;
+ *ptr = t;
+ return t + -1;
+}
+
+/*
+ * check-name: reassoc-op-op1
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-pattern(1): add\\.
+ */