llvm-6502/test/CFrontend/2005-07-28-IncorrectWeakGlobal.c

6 lines
135 B
C
Raw Normal View History

// RUN: %llvmgcc %s -S -o - | grep TheGlobal | not grep weak
extern int TheGlobal;
int foo() { return TheGlobal; }
int TheGlobal = 1;