summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/alignof1.C
blob: 50a32183cfc74a702b71c127927c0767ffddef0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
template<typename T>
int my_alignof()
{
    return __alignof__(T);
}

template<typename>
struct X { };

int main()
{
  return my_alignof<X<void> >();
}