Debian Codegraph @

testsuite/small/globalvars-4.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/
2
3 extern double pow (double __x, double __y) __attribute__ ((__nothrow__ ));
4 extern double __pow (double __x, double __y) __attribute__ ((__nothrow__ ));
5
6 static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;
7
8 void f() {
9 float z = (float) pow(stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f;
10 }
11
12 /* { dg-final { scan-tree-dump "static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;" } } */
13 /* { dg-final { scan-tree-dump-not "static float stbi__h2l_gamma_i=1.0f/2.2f;" } } */