1 /* { dg-skip-if "can't read function data" { nvptx-*-* } } */
2 void foo(void);
3 void bar(void);
4
test(int b)5 int test(int b)
6 {
7 void *p, **q;
8 if (b)
9 p = (void *)foo;
10 else
11 p = (void *)bar;
12 q = (void **)p;
13 if (*q == (void *)0)
14 return 1;
15 return 0;
16 }
17