RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20080721-1.c
blob6c928f55ca103ec7b52648b759d9bdddb227fdb7
1 /* { dg-skip-if "can't read function data" { nvptx-*-* } } */
2 void foo(void);
3 void bar(void);
5 int test(int b)
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;