1 /* { dg-do run } */ 2 g(int p,int * out)3void __attribute__((noipa)) g(int p, int *out) 4 { 5 int x = 0, y; 6 #pragma GCC ivdep 7 for (int i = 0; i < 100; i++) 8 { 9 int &r = p ? x : y; 10 r = 42; 11 out[i] = x; 12 } 13 } 14 main()15int main() 16 { 17 int out[100] = { 0 }; 18 g (1, out); 19 if (out[0] != 42) 20 __builtin_abort (); 21 return 0; 22 } 23