Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr49281.c

raw
1 /* PR target/49281 */
2
3 extern void abort (void);
4
5 __attribute__((noinline, noclone)) int
6 foo (int x)
7 {
8 return (x << 2) | 4;
9 }
10
11 __attribute__((noinline, noclone)) int
12 bar (int x)
13 {
14 return (x << 2) | 3;
15 }
16
17 int
18 main ()
19 {
20 if (foo (43) != 172 || foo (1) != 4 || foo (2) != 12)
21 abort ();
22 if (bar (43) != 175 || bar (1) != 7 || bar (2) != 11)
23 abort ();
24 return 0;
25 }