llvm/llvm/test/CodeGen/AVR/ctors.ll

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=avr | FileCheck %s

define void @do_nothing() addrspace(1) #0 {
; CHECK-LABEL: do_nothing:
; CHECK:       ; %bb.0:
; CHECK-NEXT:    ret
  ret void
}

; CHECK: .globl __do_global_ctors
@llvm.global_ctors = appending global [1 x { i32, ptr addrspace(1), ptr }] [{ i32, ptr addrspace(1), ptr } { i32 65535, ptr addrspace(1) @do_nothing, ptr null }]

; CHECK: .globl __do_global_dtors
@llvm.global_dtors = appending global [1 x { i32, ptr addrspace(1), ptr }] [{ i32, ptr addrspace(1), ptr } { i32 65535, ptr addrspace(1) @do_nothing, ptr null }]