Add failure test cases
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Feb 2011 19:48:59 +0000 (14:48 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Feb 2011 19:48:59 +0000 (14:48 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-test/fail/enum-with-non-numeric-range.txt
formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt [new file with mode: 0644]
formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt [new file with mode: 0644]
formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt [new file with mode: 0644]
formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt [new file with mode: 0644]
formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt [new file with mode: 0644]

index 557fa6655ac96aba4e3ae922f3041ad97d9cc4a5..a5fa99002b7c762936daf09888c6c967e4bab820 100644 (file)
@@ -1 +1 @@
-enum{X = array[2].N ... 1, };
+enum test {X = array[2].N ... 1, };
diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-2.txt
new file mode 100644 (file)
index 0000000..f881e6d
--- /dev/null
@@ -0,0 +1 @@
+struct test { a.array[3].N = test; };
diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-3.txt
new file mode 100644 (file)
index 0000000..4eb8f98
--- /dev/null
@@ -0,0 +1 @@
+struct test { a->array[3].N = test; };
diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-4.txt
new file mode 100644 (file)
index 0000000..ebb9369
--- /dev/null
@@ -0,0 +1 @@
+struct test { array[1] = blah; };
diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left-5.txt
new file mode 100644 (file)
index 0000000..a3733be
--- /dev/null
@@ -0,0 +1 @@
+struct test { 42 = test; };
diff --git a/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt b/formats/ctf/metadata/ctf-test/fail/struct-with-non-text-left.txt
new file mode 100644 (file)
index 0000000..17b46ca
--- /dev/null
@@ -0,0 +1 @@
+struct test { array[3].N = test; };
This page took 0.02576 seconds and 4 git commands to generate.