blob: c38ecddbe596bae136d54f9b70d8d26ecdd0ab48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
int count = 0;
int dummy;
static int *
bar(void)
{
++count;
return &dummy;
}
static void
foo(void)
{
asm("" : "+r"(*bar()));
}
main()
{
foo();
if (count != 1)
abort();
exit(0);
}
|