URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
[/] [or1k_old/] [trunk/] [or1ksim/] [testbench/] [local_global.c] - Rev 1782
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; }