diff options
Diffstat (limited to 'tests/union_init.c')
-rw-r--r-- | tests/union_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/union_init.c b/tests/union_init.c new file mode 100644 index 0000000..80cee1d --- /dev/null +++ b/tests/union_init.c @@ -0,0 +1,10 @@ +union foo { + int x; + long y; +}; + +int foo() { + static union foo initval; + union foo v = initval; + return 0; +} |