1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdio.h> unsigned i = 1; /*@\label{line:decl-i-1}*/ int main(void) { unsigned i = 2; /* A new object *//*@\label{line:decl-i-2}*/ if (i) { extern unsigned i; /* An existing object *//*@\label{line:decl-i-3}*/ printf("%u\n", i); /* prints 1 */ } else { printf("%u\n", i); /* prints 2 */ } }