xref: /llvm-project/clang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c.expected (revision 697bfa40a3f853d8b9103ead53cd80a4f7c5a7df)
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
3
4//.
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
9//.
10// CHECK-LABEL: @foo(
11// CHECK-NEXT:  entry:
12// CHECK-NEXT:    ret void
13//
14void foo(void) {
15  static int hex = 0x10;
16  static int dec = 10;
17}
18// CHECK-LABEL: @bar(
19// CHECK-NEXT:  entry:
20// CHECK-NEXT:    ret void
21//
22void bar(void) {
23  static int hex = 0x20;
24  static int dec = 20;
25}
26