blob: 505e216eda3c9eee28a36c0abd0db9efb4a6f22e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/** bug-3822.c: Function pointer declaration following a block erased variable declaration within.
*/
#include <testfwk.h>
void f1(void) {
for (;;) {
char c; // this declaration got erased
c; // this became an unknown identifier
}
void (*fun)(int i);
fun;
int i; // make sure that function parameters do not leak into this scope
i;
}
void f2(void) {
if (1) { // also affected "if" since the implementation of if-declarations
char c; // this declaration got erased
c; // this became an unknown identifier
}
void (*fun)(int i);
fun;
int i; // make sure that function parameters do not leak into this scope
i;
}
|