* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr21582.c
blob93f14d5f84540bec83eb3021e4572e2747347a4a
1 /* { dg-do link } */
2 /* { dg-options "-O2 -fdump-tree-vrp1" } */
4 void link_error (void);
6 static inline void do_thing(char *s, int *p, char *q)
8 /* This should be folded away. */
9 if (s == 0 || q == 0)
10 link_error ();
12 /* This should not be folded as 'p' is not marked nonnull. */
13 if (p)
14 *p = 3;
17 void __attribute__((nonnull (1, 3))) do_other_thing(char *s, int *p, char *q)
19 do_thing(s, p, q);
22 int i;
24 int
25 main()
27 do_other_thing ("xxx", &i, "yyy");
30 /* { dg-final { scan-tree-dump-times "Folding predicate p_.*" 0 "vrp1" } } */