llvm-for-llvmta/tools/clang/test/CodeGen/2005-07-28-IncorrectWeakGlobal.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

6 lines
145 B
C

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