Print an error if typeof() lacks an argument
commit78798b4f946a37b1ffbbc6853765e479eca553e8
authorMartin Nagy <nagy.martin@gmail.com>
Mon, 27 Apr 2009 08:48:50 +0000 (27 10:48 +0200)
committerChristopher Li <sparse@chrisli.org>
Sat, 18 Jul 2009 05:30:10 +0000 (18 05:30 +0000)
treed78f2b908a585aa74e7e4a5edcb0249cc6b3cdc0
parent909d306e74e73a40aab10dcbe26261fb381a30b2
Print an error if typeof() lacks an argument

We weren't checking if the initializer isn't NULL, which caused sparse
to segfault later on when performing lazy evaluation in classify_type().

Signed-off-by: Martin Nagy <nagy.martin@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
parse.c
validation/bad-typeof.c [new file with mode: 0644]