source:
CIVL/examples/languageFeatures/compoundInit3.c@
397ae5f
| Last change on this file since 397ae5f was 8ed8eba, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 112 bytes | |
| Rev | Line | |
|---|---|---|
| [8ed8eba] | 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.
