aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/quadra02.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-06 05:02:56 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-07-01 00:18:44 +0200
commit11380d396ac94f6c808f130268c4ac026ac19f14 (patch)
tree3c0feb661f49a1da471e32f861c13dc036935b59 /validation/mem2reg/quadra02.c
parent745c0d82a5099f6c2680bc1459a652f354a75d10 (diff)
downloadsparse-dev-11380d396ac94f6c808f130268c4ac026ac19f14.tar.gz
testsuite: add a few more tests catching quadratic behaviour
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/mem2reg/quadra02.c')
-rw-r--r--validation/mem2reg/quadra02.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/mem2reg/quadra02.c b/validation/mem2reg/quadra02.c
new file mode 100644
index 00000000..6475c780
--- /dev/null
+++ b/validation/mem2reg/quadra02.c
@@ -0,0 +1,18 @@
+#include "repeat.h"
+
+#define PAT(X) int a##X = X;
+static void foo(void)
+{
+ REPEAT2(12, PAT)
+}
+
+/*
+ * check-name: quadratic vars
+ * check-command: test-linearize -I. $file
+ * check-timeout:
+ *
+ * check-output-ignore
+ * check-output-excludes: phi\\.
+ * check-output-excludes: phisrc\\.
+ * check-output-excludes: store\\.
+ */