Yes, but the trial will be about the bill, and whether it was constitutionally enacted into law. It could have been named DAVE'S LAW and it wouldn't make any difference. It might not even make a difference if my hypothetical Dave had already died. The question is whether any law of this type is valid.