URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [testbench/] [local_global.c] - Rev 1779
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test local and global variables */ #include "support.h" int global = 5; int func (unsigned long a, char b) { global = 2; a = 3 + a; b = 4 + b; return a + b; } int main () { int local = 7; global += func (local, 14); report (global ^ 0xdeaddead ^ 30); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log