Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Testing C++
Rectangle overlap
Function to m_function
Graph Theory
danger73
Shultz_Lab1.CPP
decode
Bitset Operators
mua
Reverse a string
Please log in to post a comment.