Sun Studio 12 Update 1: C User's Guide

B.2.78 -xCC

When you specify -xc99=none and -xCC, the compiler accepts the C++-style comments. In particular, // can be used to indicate the start of a comment.