blob: 1748243852a8cc93cbcd53b22d5afcab4719c00c (
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
|
/* { dg-do run } */
/* { dg-require-weak "" } */
/* { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
/* { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } */
void __attribute__((noinline,noclone))
check (int i)
{
if (i == 0)
__builtin_exit (0);
}
int i;
extern int x __attribute__((weak));
int main(int argc, char **argv)
{
if (argc)
{
check (i);
return x;
}
else
{
check (i);
return x-1;
}
return 0;
}
|