Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / pr21582.c
blobeee5d94c28d4e5766b12108262759d59cc3cb97e
1 /* { dg-do link } */
2 /* { dg-options "-O2 -fdump-tree-vrp" } */
4 static inline void do_thing(char *s, int *p, char *q)
6 /* This should be folded away. */
7 if (s == 0 || q == 0)
8 link_error ();
10 /* This should not be folded as 'p' is not marked nonnull. */
11 if (p)
12 *p = 3;
15 void __attribute__((nonnull (1, 3))) do_other_thing(char *s, int *p, char *q)
17 do_thing(s, p, q);
20 int i;
22 main()
24 do_other_thing ("xxx", &i, "yyy");
27 /* { dg-final { scan-tree-dump-times "Folding predicate p_.*" 0 "vrp" } } */
28 /* { dg-final { cleanup-tree-dump "vrp" } } */