summaryrefslogtreecommitdiffstats
path: root/testing/018_def.c
blob: dadc71c9f22b39068beed6651a8199316cfa0dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// objective: test the \def, \var, \fn, and \typedef commands
// check: 018__def_8c.xml

/** \file
 *  Text \a argument more text.
 */

#define MACRO 42
int var = 10;
void func(int) {}
void func(int,const char *) {}
typedef int Type;
enum E { E1, E2 };

/** \def MACRO
 *  A macro definition 
 */

/** \var var
 *  A variable
 */

/** \fn func(int)
 *  A function with one parameter.
 */

/** \fn func(int,const char *)
 *  A function with two parameters
 */

/** \typedef Type
 *  A type definition.
 */

/** \enum E
 *  An enum
 */