language: C++ 4.7.2 (gcc-4.7.2)
date: 543 days 0 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
 
struct A
{
  A(); //no definition, which means we cannot create instance!
  int f(); //no definition, which means we cannot call it
};
 
int main() {
        std::cout << sizeof(A().f())<< std::endl;
        return 0;
}