2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr46111.C
blobdf57d8d02d2efcfe42968dd8030a616daeae26eb
1 // { dg-do compile }
2 // { dg-require-effective-target pthread }
3 // { dg-options "-ftree-parallelize-loops=2 -g" }
5 struct A
7   int zero ()
8   {
9     return 0;
10   }
13 static inline void
14 bar (int)
18 struct B
20   struct A a;
21   B (int n)
22   {
23     for (int i = 0; i < n; i++)
24       bar (a.zero ());
25   }
28 void
29 foo (int n)
31   struct B b (n);