expressions: make assign_expression() take an op argument
[smatch.git] / validation / badtype5.c
blobc3c34ab230b753de040b99593de6aec278f01434
1 #define __force __attribute__((force))
3 int foo(int *addr);
4 int foo(int *addr)
6 return *(*((typeof(addr) __force *) addr));
9 /*
10 * check-name: badtype5.c
11 * check-description:
12 * evaluate_dereference() used to miss a call to
13 * examine_symbol_type(). This, in the present, left
14 * a SYM_TYPEOF as type for the last dereferencing
15 * which produced "error: cannot dereference this type".
16 * The presence of the __force and the typeof is needed
17 * to create the situation.