tree-optimization/110777 - abnormals and recent PRE optimization
[official-gcc.git] / gcc / testsuite / gcc.dg / pr110777.c
blob253c2a44d3d8cb79fbbe4cca439cd093e67bd61d
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -w" } */
4 void pm_message (int);
5 int *findOrAddBackgroundInPalette_palette_pnm;
6 static void findOrAddBackgroundInPalette(unsigned *paletteSizeP,
7 int *backgroundIndexP) {
8 if (*paletteSizeP) {
9 *backgroundIndexP = (*paletteSizeP)++;
10 pm_message(0);
12 pm_message(findOrAddBackgroundInPalette_palette_pnm[*backgroundIndexP]);
14 void computeColorMap(int *backgroundIndexP) {
15 unsigned paletteSize;
16 findOrAddBackgroundInPalette(&paletteSize, backgroundIndexP);
18 int main() {
19 unsigned backgroundIndex;
20 _setjmp();
21 computeColorMap(&backgroundIndex);