view gcc/testsuite/g++.dg/parse/parse2.C @ 131:84e7813d76e9

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

/* PR c++/67 */
/* { dg-do compile } */

template <class T> struct foo {
   static const int bar [3];
};
// Used to fail if 2+1 rather than 3.
template <class T> const int foo<T>::bar [2+1] = { 0, 0, 0 };