extra: fix a bug in how pointers are set inside called functions
[smatch.git] / validation / bad-cast.c
blobbf577e00949a919457b1f7172bc5630eb6d0e2f5
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:23: error: expected declaration
12 bad-cast.c:5:23: error: Expected ) at end of cast operator
13 bad-cast.c:5:23: error: got /
14 * check-error-end