]> git.sur5r.net Git - cc65/blob - test/err/duplicate-static-global.c
Add regression tests for duplicate globals with different linkage.
[cc65] / test / err / duplicate-static-global.c
1 /*
2   !!DESCRIPTION!! static duplicated with global variable
3   !!ORIGIN!!      cc65 regression tests
4   !!LICENCE!!     Public Domain
5   !!AUTHOR!!      Piotr Fusik
6 */
7
8 /*
9   see: https://github.com/cc65/cc65/issues/191
10 */
11
12 static int n = 0;
13 int n = 0;           /* should give an error */
14
15 int main(void)
16 {
17     return n;
18 }