EX-23.1 6 dex231.htm CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM Consent of Independent Registered Public Accounting Firm

Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the references to our firm under the caption “Experts” in this Shelf Registration Statement (Form S-3) of Pain Therapeutics, Inc. for the registration of common stock, preferred stock, depository shares, warrants, and debt securities and to the incorporation by reference therein of our reports dated February 1, 2010 with respect to the consolidated financial statements of Pain Therapeutics, Inc. and the effectiveness of internal control over financial reporting of Pain Therapeutics, Inc., included in its Annual Report (Form 10-K) for the year ended December 31, 2009, filed with the Securities and Exchange Commission.

/s/ ERNST & YOUNG LLP

Palo Alto, California

February 2, 2010