summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/sizeof10.C
blob: 5ecf13e13208ceefdd1dbf989172151499bc0149 (plain)
1
2
3
4
5
6
7
// PR c++/23357

template<typename T> bool foo()
{
    const long int i = sizeof(T) > 1 ? sizeof(T) : 0;
    return i > 0;
}