view gcc/testsuite/gcc.dg/pr34668-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
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; }