brintos

brintos / llvm-project-archived public Read only

0
0
Text · 419 B · d9b17d9 Raw
13 lines · cpp
1// RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s2// RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -emit-llvm %s -o - -fexperimental-new-constant-interpreter | FileCheck %s3 4extern const int W __attribute__((weak)) = 99;5const int S = 77;6 7// CHECK: @C1 = {{.*}} 778extern const int C1 = S;9 10// CHECK: %0 = load {{.*}} @W11// CHECK-NEXT: store {{.*}} %0, {{.*}} @C212extern const int C2 = W;13