| 196 | } |
| 197 | |
| 198 | int CheckAlignment(NULLCRef ptr, int alignment) |
| 199 | { |
| 200 | intptr_t asInt = (intptr_t)ptr.ptr; |
| 201 | return asInt % alignment == 0; |
| 202 | } |
| 203 | |
| 204 | LOAD_MODULE_BIND(test_alignment, "test.alignment", "int CheckAlignment(auto ref ptr, int alignment);") |
| 205 | { |