aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr66618.c
blob: 649d4f652dfdb6e6135dc7a3461df7df072ef65c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/66618 */
/* { dg-do compile } */
/* { dg-options "-O0" } */

int
foo (void)
{
  const int a = 0;
  static int b = a;	/* { dg-bogus "initializer element is not constant" } */
  return b;
}