Premier Gladys Berejiklian has reiterated her opposition to pill testing after a young man died at a music festival on the weekend, saying the measure would not have saved his life.

Glen Mcrae, a 24-year-old man from Yarraville in Melbourne's inner-west suffered a cardiac arrest at the Strawberry Fields festival in country NSW on Sunday morning after reportedly taking a cocktail of cocaine, MDMA and GHB.

Ms Berejiklian, who has faced mounting pressure to introduce pill testing at music festivals after a coroner's report urged the state government to allow the measure, on Monday repeated her position that pill testing would "unintentionally [give] young people the green light that it's OK to take the drug so long as you test them".

"What might be OK for one person taking a tablet could be lethal for another person. Let's not pretend that pill testing would have saved these lives," she told reporters in Sydney.