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

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

More testing...

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