// Test: comparing pointers to unrelated objects
// Clause: 6.5.9 p49–p51 — in all other cases besides same object/array or one-past, the behavior is undefined.
#include <stdio.h>

int main(void) {
    int a = 1, b = 2;
    // UB: comparing unrelated object pointers
    int r = (&a) < (&b); // or >, <=, >=; any relational comparison is UB
    printf("%d\n", r);
    return 0;
}
