source: trunk/testcase/456/simple.c@ 269

Last change on this file since 269 was 269, checked in by bird, 22 years ago

Early coding

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 368 bytes
Line 
1static int fileglobal = 2;
2int realglobal = 1;
3
4int foo(int i, int j)
5{
6 static int myVar = 0;
7 static int myVar2;
8
9 if (myVar++)
10 {
11 int scope;
12
13 return scope + myVar + myVar2;
14 }
15 myVar2++;
16 return 0;
17}
18
19static int bar(int i, int j)
20{
21 return i+j;
22}
23
24
25void main(int argc, char **argv)
26{
27 foo(1, 2);
28 bar(1, 2);
29}
Note: See TracBrowser for help on using the repository browser.