#include <iostream>
using namespace std;
struct Foo
{
Foo(int& some) : a(some), b(some) { }
int &a;
int &b;
};
int main() {
std::cout << "Expecting 1 if reference has no size and 8 if it has" << std::endl
<< sizeof(Foo) << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IEZvbwp7CglGb28oaW50JiBzb21lKSA6IGEoc29tZSksIGIoc29tZSkgeyB9CgkKCWludCAmYTsKCWludCAmYjsKfTsKCmludCBtYWluKCkgewoJCglzdGQ6OmNvdXQgPDwgIkV4cGVjdGluZyAxIGlmIHJlZmVyZW5jZSBoYXMgbm8gc2l6ZSBhbmQgOCBpZiBpdCBoYXMiIDw8IHN0ZDo6ZW5kbAoJICAgICAgICAgIDw8IHNpemVvZihGb28pIDw8IHN0ZDo6ZW5kbDsKCXJldHVybiAwOwp9