source:
CIVL/examples/languageFeatures/bracedScalarInit.c@
bd7a43e
| Last change on this file since bd7a43e was 1b85498, checked in by , 14 months ago | |
|---|---|
|
|
| File size: 111 bytes | |
| Rev | Line | |
|---|---|---|
| [1b85498] | 1 | #include <assert.h> |
| 2 | ||
| 3 | int main() { | |
| 4 | int x = (int){9}; | |
| 5 | int *p = (int *){&x}; | |
| 6 | ||
| 7 | assert (x == 9 && *p == 9); | |
| 8 | } |
Note:
See TracBrowser
for help on using the repository browser.
