2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr58513.cc
blob08a175c8e740600dce01cdd794cb05f6b5151633
1 // { dg-do compile }
2 // { dg-require-effective-target vect_int }
4 static int op (const int& x, const int& y) { return x + y; }
6 void foo(int* a)
8 for (int i = 0; i < 1000; ++i)
9 a[i] = op(a[i], 1);
12 // { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } }
13 // { dg-final { cleanup-tree-dump "vect" } }