summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2005-07-28-IncorrectWeakGlobal.c
blob: cbacf2253911c24ec30980de4acb061543be08c7 (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 %s -emit-llvm -o - | grep TheGlobal | not grep weak

extern int TheGlobal;
int foo() { return TheGlobal; }
int TheGlobal = 1;