1; Checks that comdat with nodeduplicate kind is lowered to a zero-flag ELF
2; section group.
3; RUN: llc < %s -mtriple=x86_64-unknown-linux | FileCheck %s
4
5; CHECK: .section .text.f1,"axG",@progbits,f1{{$}}
6; CHECK: .section .text.f2,"axG",@progbits,f1{{$}}
7; CHECK: .section .bss.g1,"aGw",@nobits,f1{{$}}
8
9$f1 = comdat nodeduplicate
10
11define void @f1() comdat {
12  unreachable
13}
14
15define hidden void @f2() comdat($f1) {
16  unreachable
17}
18
19@g1 = global i32 0, comdat($f1)
20