add test for array subscript type char
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 11 Dec 2007 23:32:31 +0000 (23:32 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 11 Dec 2007 23:32:31 +0000 (23:32 +0000)
[r18686]

parsetest/shouldfail/char_index.c [new file with mode: 0644]

diff --git a/parsetest/shouldfail/char_index.c b/parsetest/shouldfail/char_index.c
new file mode 100644 (file)
index 0000000..3c05b91
--- /dev/null
@@ -0,0 +1,5 @@
+int main() {
+       char c = 5;
+       int t [] = {1,2};
+       return t[c];
+}