DREW BARRYMORE has the richest dog in Hollywood! The “Charlie’s Angels” star is leaving her Beverly Hills home — worth $3 million — to her hero pooch Flossie.

“Drew rescued Flossie from a flea market in Pasadena years ago and Flossie returned the favor by saving Drew and new hubby Tom Green when their house was engulfed in flames in February,” said a family friend.

“Fast-thinking Flossie barked warnings that literally saved Drew and Tom’s lives.

“But Drew knew all along that her Flossie isn’t just any normal Fido. That’s why the house she shares with Drew has been placed in trust for Flossie.

“The way Drew sees things, if anything ever happens to her and Tom, Flossie, through the trust, will always be taken care of.

“Drew and Tom love that dog more than anything in the world. They want to know she’ll always have a roof over her head.

“And Drew’s just nutty enough that when Flossie passes away, if she has heirs they’ll be taken care of, too.”

Said an inside source: “Flossie is probably the only dog in the world that owns a 3,600-square-foot, three-bedroom house that was built in 1915.

“Instead of deserting the house, even though there was about $600,000 worth of damage, Drew has decided to rebuild.

“Who knows, maybe she’ll put in a bone-shaped pool for Flossie now!”