Reading PR 22522 and searching for the correct regex for it, I noticed that template/inline1.C in the C++ testsuite just uses : as the syntax for assembler labels
./template/inline1.C:// { dg-final { scan-assembler-not _ZN1X3FooIiEEvT_: } } -- Summary: template/inline1.C does not test correctly on all targerts Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22523