1 /* PR tree-optimization/54810 */
2 /* { dg-do link } */
3 /* { dg-options "-O2 -fdump-tree-vrp1" } */
4 
5 extern void link_error (void);
6 
7 #define T(n, ntype, wtype) \
8 void				\
9 f##n (wtype s)			\
10 {				\
11   if ((ntype) s == 0)		\
12     return;			\
13   if (s == 0)			\
14     link_error ();		\
15 }
16 
17 T(1, unsigned char, unsigned char)
18 T(2, unsigned char, unsigned short)
19 T(3, unsigned char, unsigned int)
20 T(4, unsigned char, unsigned long int)
21 T(5, unsigned char, unsigned long long int)
22 T(6, unsigned short int, unsigned short int)
23 T(7, unsigned short int, unsigned int)
24 T(8, unsigned short int, unsigned long int)
25 T(9, unsigned short int, unsigned long long int)
26 T(10, unsigned int, unsigned int)
27 T(11, unsigned int, unsigned long int)
28 T(12, unsigned int, unsigned long long int)
29 T(13, unsigned long int, unsigned long int)
30 T(14, unsigned long int, unsigned long long int)
31 T(15, unsigned long long int, unsigned long long int)
32 
33 int
main()34 main ()
35 {
36   return 0;
37 }
38 
39 /* { dg-final { scan-tree-dump-not "link_error" "vrp1"} } */
40