Blame tests/upstream-test-suite/044_section.h
|
Than Ngo |
b7bcaa |
// objective: test the \(public|protected|private)section commands
|
|
Than Ngo |
b7bcaa |
// check: struct_s.xml
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** A struct */
|
|
Than Ngo |
b7bcaa |
struct S
|
|
Than Ngo |
b7bcaa |
{
|
|
Than Ngo |
b7bcaa |
/** \publicsection */
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** public field */
|
|
Than Ngo |
b7bcaa |
int pub1;
|
|
Than Ngo |
b7bcaa |
/** another public field */
|
|
Than Ngo |
b7bcaa |
int pub2;
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** \protectedsection */
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** protected field */
|
|
Than Ngo |
b7bcaa |
int pro1;
|
|
Than Ngo |
b7bcaa |
/** another protected field */
|
|
Than Ngo |
b7bcaa |
int pro2;
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** \privatesection */
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** private field */
|
|
Than Ngo |
b7bcaa |
int pri1;
|
|
Than Ngo |
b7bcaa |
/** another private field */
|
|
Than Ngo |
b7bcaa |
int pri2;
|
|
Than Ngo |
b7bcaa |
};
|
|
Than Ngo |
b7bcaa |
|