1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

new testcase

llvm-svn: 26596
This commit is contained in:
Chris Lattner 2006-03-07 17:56:31 +00:00
parent 27f87a6955
commit 9e766930c7

View File

@ -0,0 +1,15 @@
; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep foo
; RUN: llvm-as < %s | opt -constmerge | llvm-dis | grep bar
; Don't merge constants in different sections.
%G1 = internal constant int 1, section "foo"
%G2 = internal constant int 1, section "bar"
%G3 = internal constant int 1, section "bar"
void %test(int** %P1, int **%P2, int **%P3) {
store int* %G1, int** %P1
store int* %G2, int** %P2
store int* %G3, int** %P3
ret void
}