Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / weak-init.cpp
blob634021f38f854ccda6108da662f5bcf6e77cd2ff
1 // RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s
3 extern const int W __attribute__((weak)) = 99;
4 const int S = 77;
6 // CHECK: @C1 = {{.*}} 77
7 extern const int C1 = S;
9 // CHECK: %0 = load {{.*}} @W
10 // CHECK-NEXT: store {{.*}} %0, {{.*}} @C2
11 extern const int C2 = W;