source:
CIVL/examples/modelbuilder/file_scope_extern.c@
3d3af8f
| Last change on this file since 3d3af8f was bfb3278, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 120 bytes | |
| Rev | Line | |
|---|---|---|
| [bfb3278] | 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.
