aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/test/ref
diff options
context:
space:
mode:
Diffstat (limited to 'c_parser/test/ref')
-rw-r--r--c_parser/test/ref/01.stdout.xml12
-rw-r--r--c_parser/test/ref/02.stdout.xml8
-rw-r--r--c_parser/test/ref/03.stdout.xml10
-rw-r--r--c_parser/test/ref/04.stdout.xml18
-rw-r--r--c_parser/test/ref/05.stdout.xml16
-rw-r--r--c_parser/test/ref/06.stdout.xml22
-rw-r--r--c_parser/test/ref/07.stdout.xml16
-rw-r--r--c_parser/test/ref/08.stdout.xml26
-rw-r--r--c_parser/test/ref/09.stdout.xml36
-rw-r--r--c_parser/test/ref/10.stdout.xml20
-rw-r--r--c_parser/test/ref/11.stdout.xml11
-rw-r--r--c_parser/test/ref/12.stdout.xml10
12 files changed, 123 insertions, 82 deletions
diff --git a/c_parser/test/ref/01.stdout.xml b/c_parser/test/ref/01.stdout.xml
index bd7cd1f..e0545e4 100644
--- a/c_parser/test/ref/01.stdout.xml
+++ b/c_parser/test/ref/01.stdout.xml
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<Program>
-<Variable id="a" />
-<Variable id="b" />
-<Variable id="c" />
-<Variable id="d" />
-<Variable id="e" />
-<Variable id="f" />
+ <Variable id="a" />
+ <Variable id="b" />
+ <Variable id="c" />
+ <Variable id="d" />
+ <Variable id="e" />
+ <Variable id="f" />
</Program>
diff --git a/c_parser/test/ref/02.stdout.xml b/c_parser/test/ref/02.stdout.xml
index bc37d7a..6caf2fc 100644
--- a/c_parser/test/ref/02.stdout.xml
+++ b/c_parser/test/ref/02.stdout.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Program>
-<Function id="f">
-<Scope>
-</Scope>
-</Function>
+ <Function id="f">
+ <Scope>
+ </Scope>
+ </Function>
</Program>
diff --git a/c_parser/test/ref/03.stdout.xml b/c_parser/test/ref/03.stdout.xml
index 6ca0ab2..2c29a50 100644
--- a/c_parser/test/ref/03.stdout.xml
+++ b/c_parser/test/ref/03.stdout.xml
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<Program>
-<Function id="foo">
-<Parameter id="bar" />
-<Scope>
-</Scope>
-</Function>
+ <Function id="foo">
+ <Parameter id="bar" />
+ <Scope>
+ </Scope>
+ </Function>
</Program>
diff --git a/c_parser/test/ref/04.stdout.xml b/c_parser/test/ref/04.stdout.xml
index 9257eac..caae53b 100644
--- a/c_parser/test/ref/04.stdout.xml
+++ b/c_parser/test/ref/04.stdout.xml
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<Program>
-<Function id="foo">
-<Parameter id="bar1" />
-<Parameter id="bar2" />
-<Scope>
-<Variable id="x" />
-<Variable id="y" />
-<Variable id="z" />
-</Scope>
-</Function>
+ <Function id="foo">
+ <Parameter id="bar1" />
+ <Parameter id="bar2" />
+ <Scope>
+ <Variable id="x" />
+ <Variable id="y" />
+ <Variable id="z" />
+ </Scope>
+ </Function>
</Program>
diff --git a/c_parser/test/ref/05.stdout.xml b/c_parser/test/ref/05.stdout.xml
index 7381e51..f4b306f 100644
--- a/c_parser/test/ref/05.stdout.xml
+++ b/c_parser/test/ref/05.stdout.xml
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<Program>
-<Function id="foo">
-<Parameter id="x" />
-<Parameter id="y" />
-<Scope>
-<Scope>
-</Scope>
-</Scope>
-</Function>
+ <Function id="foo">
+ <Parameter id="x" />
+ <Parameter id="y" />
+ <Scope>
+ <Scope>
+ </Scope>
+ </Scope>
+ </Function>
</Program>
diff --git a/c_parser/test/ref/06.stdout.xml b/c_parser/test/ref/06.stdout.xml
index fbcbebd..3526139 100644
--- a/c_parser/test/ref/06.stdout.xml
+++ b/c_parser/test/ref/06.stdout.xml
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<Program>
-<Function id="f">
-<Parameter id="a" />
-<Parameter id="b" />
-<Parameter id="c" />
-<Scope>
-<Variable id="d" />
-<Scope>
-<Variable id="e" />
-</Scope>
-</Scope>
-</Function>
+ <Function id="f">
+ <Parameter id="a" />
+ <Parameter id="b" />
+ <Parameter id="c" />
+ <Scope>
+ <Variable id="d" />
+ <Scope>
+ <Variable id="e" />
+ </Scope>
+ </Scope>
+ </Function>
</Program>
diff --git a/c_parser/test/ref/07.stdout.xml b/c_parser/test/ref/07.stdout.xml
index ff0efb2..17c7c1b 100644
--- a/c_parser/test/ref/07.stdout.xml
+++ b/c_parser/test/ref/07.stdout.xml
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<Program>
-<Function id="foo">
-<Parameter id="a" />
-<Scope>
-<Scope>
-<Variable id="z" />
-</Scope>
-</Scope>
-</Function>
+ <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
index 7929e75..0838fe5 100644
--- a/c_parser/test/ref/08.stdout.xml
+++ b/c_parser/test/ref/08.stdout.xml
@@ -1,16 +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>
+ <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
index 7a7a770..646cd98 100644
--- a/c_parser/test/ref/09.stdout.xml
+++ b/c_parser/test/ref/09.stdout.xml
@@ -1,21 +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>
+ <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>
diff --git a/c_parser/test/ref/10.stdout.xml b/c_parser/test/ref/10.stdout.xml
new file mode 100644
index 0000000..21cadeb
--- /dev/null
+++ b/c_parser/test/ref/10.stdout.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<Program>
+ <Function id="f">
+ <Scope>
+ </Scope>
+ </Function>
+ <Variable id="g" />
+ <Function id="x">
+ <Parameter id="y" />
+ <Scope>
+ <Variable id="z" />
+ <Scope>
+ <Variable id="r" />
+ </Scope>
+ <Scope>
+ <Variable id="f" />
+ </Scope>
+ </Scope>
+ </Function>
+</Program>
diff --git a/c_parser/test/ref/11.stdout.xml b/c_parser/test/ref/11.stdout.xml
new file mode 100644
index 0000000..ad96d6c
--- /dev/null
+++ b/c_parser/test/ref/11.stdout.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<Program>
+ <Function id="f">
+ <Scope>
+ <Variable id="x" />
+ <Scope>
+ <Variable id="y" />
+ </Scope>
+ </Scope>
+ </Function>
+</Program>
diff --git a/c_parser/test/ref/12.stdout.xml b/c_parser/test/ref/12.stdout.xml
new file mode 100644
index 0000000..9f49265
--- /dev/null
+++ b/c_parser/test/ref/12.stdout.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<Program>
+ <Function id="f">
+ <Parameter id="b" />
+ <Parameter id="c" />
+ <Scope>
+ <Variable id="a" />
+ </Scope>
+ </Function>
+</Program>