1 ; RUN: llvm-as %s -o - | llvm-nm - | FileCheck %s 2 3 ; CHECK: D a1 4 ; CHECK-NEXT: d a2 5 ; CHECK-NEXT: T f1 6 ; CHECK-NEXT: t f2 7 ; CHECK-NEXT: W f3 8 ; CHECK-NEXT: U f4 9 ; CHECK-NEXT: D g1 10 ; CHECK-NEXT: d g2 11 ; CHECK-NEXT: C g3 12 ; CHECK-NOT: g4 13 ; CHECK-NEXT: T global_asm_sym 14 ; CHECK-NEXT: t local_asm_sym 15 ; CHECK-NEXT: U undef_asm_sy 16 17 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 18 target triple = "x86_64-unknown-linux-gnu" 19 20 module asm ".global global_asm_sym" 21 module asm "global_asm_sym:" 22 module asm "local_asm_sym:" 23 module asm ".long undef_asm_sym" 24 25 @g1 = global i32 42 26 @g2 = internal global i32 42 27 @g3 = common global i32 0 28 @g4 = private global i32 42 29 30 @a1 = alias i32* @g1 31 @a2 = alias internal i32* @g1 32 33 define void @f1() { 34 ret void 35 } 36 37 define internal void @f2() { 38 ret void 39 } 40 41 define linkonce_odr void @f3() { 42 ret void 43 } 44 45 declare void @f4() 46