source:
CIVL/examples/languageFeatures/bracedScalarInit.c
| Last change on this file was 1b85498, checked in by , 14 months ago | |
|---|---|
|
|
| File size: 111 bytes | |
| Line | |
|---|---|
| 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.
