30 lines · plain
1; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC2; Check for VST forward declaration record and VST function index records.3 4; BC: <VSTOFFSET5; BC: <FNENTRY6; BC: <FNENTRY7 8; RUN: llvm-as < %s | llvm-dis | FileCheck %s9; Check that this round-trips correctly.10 11; ModuleID = '<stdin>'12target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"13target triple = "x86_64-unknown-linux-gnu"14 15; CHECK: define i32 @foo()16 17; Function Attrs: nounwind uwtable18define i32 @foo() #0 {19entry:20 ret i32 121}22 23; CHECK: define i32 @bar(i32 %x)24 25; Function Attrs: nounwind uwtable26define i32 @bar(i32 %x) #0 {27entry:28 ret i32 %x29}30