blob: 37a11472962c568a48d6f3955d0c2ddea80e0f9d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* As a quality of implementation issue, we should not prevent inlining
of function explicitly marked inline just because a label therein had
its address taken. */
#ifndef NO_LABEL_VALUES
static void *ptr1, *ptr2;
static __inline__ void doit(void **pptr, int cond)
{
if (cond) {
here:
*pptr = &&here;
}
}
static void f(int cond)
{
doit (&ptr1, cond);
}
static void g(int cond)
{
doit (&ptr2, cond);
}
static void bar(void);
int main()
{
f (1);
bar();
g (1);
#ifdef __OPTIMIZE__
if (ptr1 == ptr2)
abort ();
#endif
exit (0);
}
void bar(void) { }
#else /* NO_LABEL_VALUES */
int main() { exit(0); }
#endif
|