summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr34668-1.c
blob: 7e242c294c7bbd81a83747d2f83d4693c750820f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR c/34668 */
/* { dg-do link } */
/* { dg-require-effective-target lto } */
/* { dg-options "-flto -O2" } */
/* { dg-additional-sources "pr34668-2.c" } */

struct optab { unsigned code; };
struct optab optab_table[1];

void
init_optab (struct optab *op)
{
  op->code = 0xdead;
}

void
set_conv_libfunc (void)
{
  init_optab (&optab_table[0]);
}

int main() { return 0; }