From 54e171064a9708dcdc6e7d258a82a11cb45dfd88 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 11 Dec 2007 23:32:31 +0000 Subject: [PATCH] add test for array subscript type char [r18686] --- parsetest/shouldfail/char_index.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 parsetest/shouldfail/char_index.c diff --git a/parsetest/shouldfail/char_index.c b/parsetest/shouldfail/char_index.c new file mode 100644 index 0000000..3c05b91 --- /dev/null +++ b/parsetest/shouldfail/char_index.c @@ -0,0 +1,5 @@ +int main() { + char c = 5; + int t [] = {1,2}; + return t[c]; +} -- 2.20.1