I flew with BA and gave in my AA number and wasn't credited. I sent in my BP and ticket to AA and they said they would send it to BA to confirm and it would take about 60 days for BA to answer- and that's about how long it took!
I really have no way of knowing, but my guess is that they confirm the info every time.