summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_sizeof_member.cpp
blob: ae143d26f4e80ccaa9475a129d74bcc5022cd6ec (plain)
1
2
3
4
5
6
7
8
9
10

struct A
{
  int m_i;
};

int someFunc()
{
  return sizeof(A::m_i) > 0 ? 1 : 2;
}