Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strange builtin_offseof behavior
//g++ 5.4.0 #include <iostream> struct wrap { int i; }; struct A { int i; wrap w; virtual void vf(){}; }; void f() { (void)__builtin_offsetof(A, i); (void)__builtin_offsetof(A, w.i); } int main() { f(); std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
Empty C++ Script
12hours Clock c++
First and last Occurence of an Element
Polyrmophism
MenuStream
Bez królików
TypeSizeTest
UnghiLansator
Geometric Series
Sequence point and array