It happened to me to take Euros in an ATM (ATMs with the logo UnionPay) in Europe out of my Thai Bangkok Bank account with my ATM Thai debit card. No problem. Excellent exchange rates on top of it.
I have tried it. It worked, no problem. With Lufthansa. They checked at check-in whether I was in the system as having an outbound ticket. The ticket was cancelled after 48h from date and time of flying, when I was already in Thailand. Paid 10 USD.