summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20101014-2_0.C
blob: 0b2a52c616b483affba91079e974c85c81e0a0f6 (plain)
1
2
3
4
5
6
7
8
// { dg-lto-do assemble }

template<class T, unsigned long l>
inline unsigned long foo (T (&)[l]) { return l; }

struct S { char *s[4]; S (); };

S::S () { typedef int T[foo (s) == 4 ? 1 : -1]; }