blob: a4d16bc82d165a8799686d89025300346a8b9639 (
plain) (
blame)
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
33
34
35
36
37
|
/*
bug-2313.c - didn't compile (validateLink failed due to bug in jump-after-cast-optimization).
*/
#include <testfwk.h>
#pragma disable_warning 85
#pragma std_c99
#include <stdint.h>
typedef uint16_t usize_t;
typedef int16_t arg_t;
typedef struct u_data {
arg_t u_argn1;
} u_data;
usize_t valaddr(const char *base, usize_t size)
{
return(0);
}
struct u_data udata;
#define statloc (int __data *)udata.u_argn1
void f(void)
{
statloc && !valaddr((char *) statloc, sizeof(int));
}
void testBug(void)
{
f();
}
|