1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-globals --global-value-regex "foo\..*" "bar\..*" --global-hex-value-regex ".*\.hex"
2 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
5 // CHECK: @foo.hex = internal global i32 [[#0x10]], align 4
6 // CHECK: @foo.dec = internal global i32 10, align 4
7 // CHECK: @bar.hex = internal global i32 [[#0x20]], align 4
8 // CHECK: @bar.dec = internal global i32 20, align 4
12 // CHECK-NEXT: ret void
15 static int hex = 0x10;
20 // CHECK-NEXT: ret void
23 static int hex = 0x20;