view gcc/testsuite/g++.dg/ext/attrib31.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++/35097

template<int> struct A;

template<> struct A<0>
{
  typedef int X __attribute((aligned(4)));
};

template<typename T> void foo(const A<0>::X&, T);

void bar()
{
  foo(A<0>::X(), 0);
}