Blame tests/upstream-test-suite/048_showinit.c
|
Than Ngo |
b7bcaa |
// objective: test the \showinit command
|
|
Than Ngo |
b7bcaa |
// check: 048__showinit_8c.xml
|
|
Than Ngo |
b7bcaa |
// config: MAX_INITIALIZER_LINES = 0
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** \file */
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** a variable with initializer hidden due to MAX_INITIALIZER_LINES */
|
|
Than Ngo |
b7bcaa |
int var1 = 10;
|
|
Than Ngo |
b7bcaa |
|
|
Than Ngo |
b7bcaa |
/** a variable with initializer visible
|
|
Than Ngo |
b7bcaa |
* \showinitializer
|
|
Than Ngo |
b7bcaa |
*/
|
|
Than Ngo |
b7bcaa |
int var2 = 20;
|