diff options
Diffstat (limited to 'c_parser/test/ref')
-rw-r--r-- | c_parser/test/ref/07.stdout.xml | 5 | ||||
-rw-r--r-- | c_parser/test/ref/08.stdout.xml | 16 | ||||
-rw-r--r-- | c_parser/test/ref/09.stdout.xml | 21 |
3 files changed, 42 insertions, 0 deletions
diff --git a/c_parser/test/ref/07.stdout.xml b/c_parser/test/ref/07.stdout.xml index baedd20..ff0efb2 100644 --- a/c_parser/test/ref/07.stdout.xml +++ b/c_parser/test/ref/07.stdout.xml @@ -1,6 +1,11 @@ <?xml version="1.0"?> <Program> +<Function id="foo"> +<Parameter id="a" /> +<Scope> <Scope> <Variable id="z" /> </Scope> +</Scope> +</Function> </Program> diff --git a/c_parser/test/ref/08.stdout.xml b/c_parser/test/ref/08.stdout.xml new file mode 100644 index 0000000..7929e75 --- /dev/null +++ b/c_parser/test/ref/08.stdout.xml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<Program> +<Function id="func"> +<Parameter id="a" /> +<Parameter id="b" /> +<Scope> +<Variable id="c" /> +<Scope> +<Variable id="d" /> +</Scope> +<Scope> +<Variable id="e" /> +</Scope> +</Scope> +</Function> +</Program> diff --git a/c_parser/test/ref/09.stdout.xml b/c_parser/test/ref/09.stdout.xml new file mode 100644 index 0000000..7a7a770 --- /dev/null +++ b/c_parser/test/ref/09.stdout.xml @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<Program> +<Function id="x"> +<Scope> +</Scope> +</Function> +<Variable id="g" /> +<Function id="zz"> +<Parameter id="a" /> +<Parameter id="b" /> +<Parameter id="c" /> +<Scope> +<Scope> +<Variable id="a" /> +</Scope> +<Scope> +<Variable id="fsdfsdfs" /> +</Scope> +</Scope> +</Function> +</Program> |