Test Document
=============
Richard Ballinger Seaton

:leveloffset: 1

First Section
=============

This sentence ends with an xref link to the 'submit' anchor: <<submit>>.

Second Section
==============

The 'submit' anchor follows this sentence.

[[submit,submit]]
ifdef::inctext[]
If this sentence is commented out, the anchor fails to work when using a2x (but not when using asciidoc).
endif::inctext[]
[source,{basebackend@docbook:c++:cpp}]
------------------------------------------------------------------------------
int somefunc(
    int arg);
------------------------------------------------------------------------------

This is a paragraph. It should have nothing to do with the anchor.
