source:
CIVL/mods/dev.civl.com/examples/modelbuilder/file_scope_extern.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 120 bytes | |
| Line | |
|---|---|
| 1 | #include <assert.h> |
| 2 | |
| 3 | extern int x; |
| 4 | |
| 5 | int f() { |
| 6 | assert(x == 9); |
| 7 | return x; |
| 8 | } |
| 9 | |
| 10 | int x = 9; |
| 11 | |
| 12 | int main() { |
| 13 | return f(); |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
