Blame tests/upstream-test-suite/018_def.c

Than Ngo b7bcaa
// objective: test the \def, \var, \fn, and \typedef commands
Than Ngo b7bcaa
// check: 018__def_8c.xml
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \file
Than Ngo b7bcaa
 *  Text \a argument more text.
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
#define MACRO 42
Than Ngo b7bcaa
int var = 10;
Than Ngo b7bcaa
void func(int) {}
Than Ngo b7bcaa
void func(int,const char *) {}
Than Ngo b7bcaa
typedef int Type;
Than Ngo b7bcaa
enum E { E1, E2 };
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \def MACRO
Than Ngo b7bcaa
 *  A macro definition 
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \var var
Than Ngo b7bcaa
 *  A variable
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \fn func(int)
Than Ngo b7bcaa
 *  A function with one parameter.
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \fn func(int,const char *)
Than Ngo b7bcaa
 *  A function with two parameters
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \typedef Type
Than Ngo b7bcaa
 *  A type definition.
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \enum E
Than Ngo b7bcaa
 *  An enum
Than Ngo b7bcaa
 */