1; RUN: llvm-as %s -o=%t1
2; RUN: rm -f %t2
3; RUN: llvm-ar rcs %t2 %t1
4; RUN: llvm-nm -M %t2 | FileCheck %s
5
6target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7target triple = "x86_64-unknown-linux-gnu"
8
9module asm ".global global_asm_sym"
10module asm "global_asm_sym:"
11module asm "local_asm_sym:"
12module asm ".long undef_asm_sym"
13
14; CHECK: Archive map
15; CHECK-NEXT: global_asm_sym in archive-ir-asm.ll
16
17; CHECK: archive-ir-asm.ll
18; CHECK-NEXT:         T global_asm_sym
19; CHECK-NEXT:         t local_asm_sym
20; CHECK-NEXT:         U undef_asm_sym
21