view gcc/testsuite/g++.dg/cpp2a/range-for18.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

// PR c++/87152
// { dg-do compile }
// { dg-options "-std=c++2a" }

template<int> void foo()
{
  int a[] = { 1, 1, 1 };
  for (int i = 0; auto x : a);
  int i;
}

void
bar ()
{
  foo<0>();
}