diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-17 22:12:38 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-02-17 22:12:38 +0000 |
commit | 744f11aad18ce8d184e69d129dcf636f8be9b302 (patch) | |
tree | 1d5fe8bd3be92ee4f01240eb96aa6f82a7bed044 /c_parser/test | |
parent | 850f46eeb6de286d4b079373104af87e3aca781c (diff) | |
download | Compiler-744f11aad18ce8d184e69d129dcf636f8be9b302.tar.gz Compiler-744f11aad18ce8d184e69d129dcf636f8be9b302.zip |
Creating if statement and added test case for it
Diffstat (limited to 'c_parser/test')
-rw-r--r-- | c_parser/test/in/07.c | 3 | ||||
-rw-r--r-- | c_parser/test/out/07.diff.txt | 7 | ||||
-rw-r--r-- | c_parser/test/out/07.stderr.txt | 1 | ||||
-rw-r--r-- | c_parser/test/out/07.stdout.xml | 0 | ||||
-rw-r--r-- | c_parser/test/ref/07.stdout.xml | 6 |
5 files changed, 17 insertions, 0 deletions
diff --git a/c_parser/test/in/07.c b/c_parser/test/in/07.c new file mode 100644 index 0000000..baa3ba5 --- /dev/null +++ b/c_parser/test/in/07.c @@ -0,0 +1,3 @@ +if(x == y) { + int z; +} diff --git a/c_parser/test/out/07.diff.txt b/c_parser/test/out/07.diff.txt new file mode 100644 index 0000000..292a596 --- /dev/null +++ b/c_parser/test/out/07.diff.txt @@ -0,0 +1,7 @@ +1,6d0 +< <?xml version="1.0"?> +< <Program> +< <Scope> +< <Variable id="z" /> +< </Scope> +< </Program> diff --git a/c_parser/test/out/07.stderr.txt b/c_parser/test/out/07.stderr.txt new file mode 100644 index 0000000..6200509 --- /dev/null +++ b/c_parser/test/out/07.stderr.txt @@ -0,0 +1 @@ +Parse error : syntax error diff --git a/c_parser/test/out/07.stdout.xml b/c_parser/test/out/07.stdout.xml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/c_parser/test/out/07.stdout.xml diff --git a/c_parser/test/ref/07.stdout.xml b/c_parser/test/ref/07.stdout.xml new file mode 100644 index 0000000..baedd20 --- /dev/null +++ b/c_parser/test/ref/07.stdout.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<Program> +<Scope> +<Variable id="z" /> +</Scope> +</Program> |