chibicc/test/extern.c

13 lines
140 B
C
Raw Normal View History

2020-09-04 11:27:22 +03:00
#include "test.h"
extern int ext1;
extern int *ext2;
int main() {
ASSERT(5, ext1);
ASSERT(5, *ext2);
printf("OK\n");
return 0;
}