If you ignore any compilation errors, then I would expect the linking stage to crash in the driver, because you'll be feeding invalid data into the driver...
OpenGL is just a text document, specifying how drivers *should* behave. Sadly, in practice, no driver strictly follows every word of the specification...But how is it possible that it works correctly on two amd gpus(hd 7770, windows 10; hd 6470,. windows 7)? And both produces correct images?
If there were any mismatch between vertex and pixel shader there would be an error on amd gpus or at least they would produce incorrect image.
NVidia in particular are famous for accepting blatantly invalid GLSL code and compiling it anyway. So it's very important to test your GL applications on every different graphics card driver that your customers might use :(