1b8e80941Smrg#version 130
2b8e80941Smrg
3b8e80941Smrgout int fooOut;
4b8e80941Smrg
5b8e80941Smrgvoid main()
6b8e80941Smrg{
7b8e80941Smrg  int defined = 2;
8b8e80941Smrg  int undefined;
9b8e80941Smrg  int fooInt;
10b8e80941Smrg
11b8e80941Smrg  defined = fooOut;
12b8e80941Smrg  fooOut = undefined;
13b8e80941Smrg  /* Technically at this point fooOut is still undefined. But it was
14b8e80941Smrg   * initialized that is what the unitialized warning detects in any
15b8e80941Smrg   * case. "Real undefined" is beyond the scope of what mesa is/should
16b8e80941Smrg   * detect*/
17b8e80941Smrg  defined = fooOut;
18b8e80941Smrg}
19b8e80941Smrg
20