mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland: start per-directory flags with userland/gcc
This commit is contained in:
11
userland/gcc/empty_struct.c
Normal file
11
userland/gcc/empty_struct.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/* Empty struct */
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
struct s {};
|
||||
struct s s0;
|
||||
assert(sizeof(s0) == 0);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user