summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/id-27.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/graphite/id-27.c')
-rw-r--r--gcc/testsuite/gcc.dg/graphite/id-27.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/graphite/id-27.c b/gcc/testsuite/gcc.dg/graphite/id-27.c
new file mode 100644
index 000000000..d2d4cd36b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/id-27.c
@@ -0,0 +1,17 @@
+/* { dg-options "-O2 -fgraphite-identity -flto" { target lto } } */
+
+typedef long ll;
+void foo (int n, ll *p)
+{
+ while (n--)
+ *p += *p;
+}
+
+typedef long long lll;
+void bar (int n, lll *p)
+{
+ while (n--)
+ *p += *p;
+}
+
+int main() { return 0; }