4 ms·
The example also shows a call to a different translation unit. There's no code for passing the empty struct. There's also none for handling it, as you can see f
by vnorilo 7y ago
The example also shows a call to a different translation unit. There's no code for passing the empty struct. There's also none for handling it, as you can see from the assembly output.
The one byte rule does nothing here, because its value is undefined and its address not observable.
edit: if you find a case where an empty struct parameter causes code to be emitted, let's consider filing bugs.