source:
CIVL/examples/languageFeatures/compoundInit3.c
| Last change on this file was 8ed8eba, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 112 bytes | |
| Line | |
|---|---|
| 1 | #include <assert.h> |
| 2 | union Node { |
| 3 | int x, y; |
| 4 | }; |
| 5 | int main() { |
| 6 | union Node node = { .y=1 }; |
| 7 | node.x; // error |
| 8 | } |
Note:
See TracBrowser
for help on using the repository browser.
