]> git.sur5r.net Git - cc65/blob - test/val/static-1.c
goto.c warning fix for implicit truncation
[cc65] / test / val / static-1.c
1 /*
2   !!DESCRIPTION!! global non-static and static conflicts
3   !!ORIGIN!!      cc65 regression tests
4   !!LICENCE!!     Public Domain
5   !!AUTHOR!!      Greg King
6 */
7
8 /*
9   see: https://github.com/cc65/cc65/issues/191
10 */
11
12 #pragma warn(error, on)
13
14 static int n = 0;
15 extern int n;           /* should not give an error */
16
17 int main(void)
18 {
19     return n;
20 }