repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
static4.C
blob
87e11b027563a2223a7655f00d5aae97c0119e8b
1
// PR 13898
2
// Make sure the two X variables get assigned unique assembler names
3
// if they are promoted to static storage.
4
5
// { dg-do compile }
6
7
int g(int i) {
8
if (i<1) {
9
const int x[3] = { 1,2,3 };
10
return x[i];
11
} else {
12
const int x[3] = { 4,5,6 };
13
return x[i];
14
}
15
}