view gcc/testsuite/gcc.dg/pr34668-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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; }