gcc/testsuite/gcc.dg/lto/pr101868_1.c
raw| 1 | typedef unsigned long VALUE; |
| 2 | |
| 3 | |
| 4 | __attribute__ ((noreturn)) void rexc_raise(VALUE mesg); |
| 5 | |
| 6 | VALUE rb_donothing(VALUE klass); |
| 7 | |
| 8 | static void |
| 9 | funexpected_type(VALUE x, int xt, int t) |
| 10 | { |
| 11 | rexc_raise(rb_donothing(0)); |
| 12 | } |
| 13 | |
| 14 | __attribute__ ((cold)) |
| 15 | void |
| 16 | rb_check_type(VALUE x, int t) |
| 17 | { |
| 18 | int xt; |
| 19 | |
| 20 | if (x == 0) { |
| 21 | funexpected_type(x, xt, t); |
| 22 | } |
| 23 | } |