LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050105-2.c
blob02ac1596b398bcf44e38875a82ec2ca9e3e32822
1 /* PR tree-optimization/18828 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 #include <stdarg.h>
7 extern void abort (void);
9 void foo (int x, ...)
11 va_list ap;
12 if (x != 21)
13 abort ();
14 va_start (ap, x);
15 va_end (ap);
18 void bar (int x, ...)
20 va_list ap;
21 x++;
22 va_start (ap, x);
23 va_end (ap);
26 void baz (int x, ...)
28 va_list ap;
29 x = 0;
30 va_start (ap, x);
31 va_end (ap);