1 /* { dg-do run } */
2 
3 __attribute__((noinline,noclone))
test(int * pi,long * pl,int f)4 void test(int *pi, long *pl, int f)
5 {
6   *pl = 0;
7 
8   *pi = 1;
9 
10   if (f)
11     *pl = 2;
12 }
13 
main()14 int main()
15 {
16   void *p = __builtin_malloc(sizeof (long));
17 
18   test(p, p, 0);
19 
20   if (*(int *)p != 1)
21     __builtin_abort ();
22   return 0;
23 }
24