Debian Codegraph @

gcc/testsuite/gcc.dg/rtl/x86_64/times-two.h

raw
1 /* Shared test code for the various __RTL tests of times_two that
2 start at different passes. */
3
4 extern void abort (void);
5 int times_two (int i);
6
7 int main (void)
8 {
9 if (times_two (0) != 0)
10 abort ();
11
12 if (times_two (1) != 2)
13 abort ();
14
15 if (times_two (100) != 200)
16 abort ();
17
18 if (times_two (-20) != -40)
19 abort ();
20
21 return 0;
22 }