[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / clang / test / CodeGenCXX / weak-init.cpp
blobd9b17d9ca74f87b249ee9743868d712f0fe2172f
1 // RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -emit-llvm %s -o - -fexperimental-new-constant-interpreter | FileCheck %s
4 extern const int W __attribute__((weak)) = 99;
5 const int S = 77;
7 // CHECK: @C1 = {{.*}} 77
8 extern const int C1 = S;
10 // CHECK: %0 = load {{.*}} @W
11 // CHECK-NEXT: store {{.*}} %0, {{.*}} @C2
12 extern const int C2 = W;