// This file tests the documentation system with mixed placement

%title "Title"
/* This is a title comment */

int foo(int);
/* This is a comment after a function */

int bar(int);
// This is a 
// multiline comment
// appearing after
// a function

%section "Section 1"
/* This is a comment after section 1 */

%subsection "Section 1.1"
/* This is a comment after subsection 1.1 */

%subsection "Section 1.2"
/* This is a comment after subsection 1.2 */

%subsubsection "Section 1.2.1"
/* This is a comment after subsubsection 1.2.1 */

%subsection "Section 1.3"
/* This is a comment after subsection 1.3 */

%subsubsection "Section 1.3.1"
/* This is a comment after subsubsection 1.3.1 */


%section "Section 2",before
/* This is a comment after section 2 */

/* This comment should not appear */
%text %{
This is a some random text thrown in to the file.
%}

/* This is a comment for grok */
int grok(int);

/* This is a comment for section 3 */
%section "Section 3"
/* This comment should be ignored */

enum {
/* Comment for ENUM1 */	ENUM1,  
/* Comment for ENUM2 */	ENUM2,       
/* Comment for ENUM3 */	ENUM3,       
/* Comment for ENUM4 */	ENUM4 };     

int  /* This is a comment for 'a' */ a, 
/* This is a comment for 'b' */      b, 
/* This is a comment for 'c' */      c, 
/* This is a comment for 'd' */      d; 

/* This comment should be attached to the class definition */
class AClass {

public:
/* This is a comment for the foo member function */
  int foo();  
/* This is a comment for the a data member */
  int a;      
};


/* These are a bunch of comments that should be pruned */

/* Comment 1 */

/* Comment 2 */

/* Comment 3 */

/* Comment 4 */

/* Comment 5 */

/* Commment before section 4 */
%section "Section 4"

/* Comment 6 */

/* Comment 7 */

/* Comment 8 */

/* Comment 9 */

/* Comment before section 5 */
%section "Section 5"

/* Comment before function frob */
double frob(double);


syntax highlighted by Code2HTML, v. 0.9.1