• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; An internal global variable that can't be renamed because it has a section
2@var_with_section = internal global i32 0, section "some_section"
3
4; @reference_gv_with_section() can't be imported
5define i32 @reference_gv_with_section() {
6    %res = load i32, i32* @var_with_section
7    ret i32 %res
8}
9
10; canary
11define void @foo() {
12    ret void
13}
14