blob: 36786d9262a62f0b15b2b2039fa44705ff9b8e6b [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge | llvm-dis | grep foo
2; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge | llvm-dis | grep bar
Chris Lattner1159e8d2006-03-07 17:56:31 +00003
4; Don't merge constants in different sections.
5
6%G1 = internal constant int 1, section "foo"
7%G2 = internal constant int 1, section "bar"
8%G3 = internal constant int 1, section "bar"
9
10void %test(int** %P1, int **%P2, int **%P3) {
11 store int* %G1, int** %P1
12 store int* %G2, int** %P2
13 store int* %G3, int** %P3
14 ret void
15}