LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27003.c
blob7d886a0496f2c26ce4bab9cb193ddf459e2ff217
1 /* { dg-do run } */
2 /* { dg-options "-Os" } */
4 unsigned int
5 foo (unsigned int x)
7 unsigned int r = x;
8 while (--x)
9 r *= x;
10 return r;
13 unsigned long long
14 bar (unsigned long long x)
16 unsigned long long r = x;
17 while (--x)
18 r *= x;
19 return r;
22 extern void abort (void);
24 int
25 main (void)
27 if (foo (5) != 120 || bar (5) != 120)
28 abort ();
29 return 0;