allocate.h: Stop needlessly returning a void value in __DO_ALLOCATOR
[smatch.git] / validation / bad-cast.c
blob4eb4a8eb9765974d61bf6b5b26448b7a4236b2fb
1 struct st;
3 static int foo(int a)
5 return (struct/st *) a;
7 /*
8 * check-name: Bad cast syntax
10 * check-error-start
11 bad-cast.c:5:16: error: expected declaration
12 bad-cast.c:5:16: error: Expected ) at end of cast operator
13 bad-cast.c:5:16: error: got /
14 * check-error-end