Regression tests for PR258 and PR259.

2004-02-26-FPNotPrintableConstants.llx ensures that constants used in an
LLVM program are declared static if they are assigned to global variables.
2004-02-26-LinkOnceFunctions.llx ensures that linkonce functions get the
weak attribute.

llvm-svn: 11885
This commit is contained in:
John Criswell 2004-02-26 22:55:11 +00:00
parent feb7c49ce4
commit 6fd2e36fd5
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
; This is a non-normal FP value: it's a nan.
; RUN: llvm-as < %s | llc -march=c
; llvm-as < %s | llc -march=c | grep FPConstant | grep static
float %func () {
ret float 0xFF20000000000000
}

View File

@ -0,0 +1,8 @@
; RUN: llvm-as < %s | llc -march=c | grep func1 | grep WEAK
implementation
linkonce int %func1 () {
ret int 5
}