cmake/c++11-test-sizeof_member-N2253.cpp

Fri, 23 Aug 2013 00:54:31 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 23 Aug 2013 00:54:31 +0300
changeset 476
baa35b4b67dc
parent 473
2a84149fe642
permissions
-rw-r--r--

fixed: front and back camera wouldn't render anything

struct foo {
	char bar;
	int baz;
};

int main(void)
{
	bool ret = (
		(sizeof(foo::bar) == 1) &&
		(sizeof(foo::baz) >= sizeof(foo::bar)) &&
		(sizeof(foo) >= sizeof(foo::bar)+sizeof(foo::baz))
	);
	return ret ? 0 : 1;
}

mercurial