LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / pr79587.c
blob517e081991922dc4a1b606866af35281d1fa6cd8
1 /* { dg-require-effective-target lto } */
2 /* { dg-options "-O2 -flto" } */
4 unsigned long global = -12345;
6 unsigned long
7 __attribute__((noinline))
8 test(unsigned long v, unsigned long v2)
10 unsigned long x = v % v2;
12 return x;
15 int main(int argc, char **argv)
17 unsigned long r = 0;
19 for (int i = 0; i < 100; i++)
20 r += test(argc, global);
22 if (r != 100)
23 __builtin_abort ();
25 return 0;