Theory of a superconductor with a tricritical point