Firing up the compiled program in gdb you can see that at assembly level the argument is being passed, but ignored inside the called method:
Dump of assembler code for function main:
0x0000000100000ce3 <main+0>: push %rbp
0x0000000100000ce4 <main+1>: mov %rsp,%rbp
0x0000000100000ce7 <main+4>: sub $0x10,%rsp
0x0000000100000ceb <main+8>: lea -0x1(%rbp),%rdi
0x0000000100000cef <main+12>: mov $0x64,%esi ; ** 0x64 = 100 = your argument
0x0000000100000cf4 <main+17>: callq 0x100000d82 <dyld_stub__ZN3Imp1XEi>
And then inside the X method the value 0x32 (50) is returned ignoring parameter passed from the main method.
Dump of assembler code for function _ZN3Imp1XEi: ; X();
0x0000000100000d1e <_ZN3Imp1XEi+0>: push %rbp
0x0000000100000d1f <_ZN3Imp1XEi+1>: mov %rsp,%rbp
0x0000000100000d22 <_ZN3Imp1XEi+4>: mov %rdi,-0x8(%rbp)
0x0000000100000d26 <_ZN3Imp1XEi+8>: mov %esi,-0xc(%rbp)
0x0000000100000d29 <_ZN3Imp1XEi+11>: mov $0x32,%eax ; ** 0x32 = 50 = your return
0x0000000100000d2e <_ZN3Imp1XEi+16>: leaveq
0x0000000100000d2f <_ZN3Imp1XEi+17>: retq
Hope it was helpful or maybe at least interesting to have a look at. Even when you are not fit in assembler it can sometimes help to dig in and look around