OSDN Git Service

2012-01-03 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr46130-1.c
1 /* PR tree-optimization/46130 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-dce" } */
4
5 #include <stdarg.h>
6
7 static void
8 foo (va_list ap)
9 {
10   va_arg (ap, char *)[0];
11 }
12
13 void
14 bar (va_list ap)
15 {
16   foo (ap);
17 }
18
19 void
20 baz (va_list ap)
21 {
22   foo (ap);
23 }