libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr104675-3.c
blob3b2eb649403603f128f0c27ba6af2a345154f158
1 /* PR tree-optimization/104675 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 _Complex unsigned int
6 foo (_Complex unsigned int x)
8 return (x / 2) * 2;
11 _Complex unsigned int
12 bar (_Complex unsigned int x)
14 return (x * 2) / 2;
17 _Complex unsigned int
18 baz (_Complex unsigned int x)
20 _Complex unsigned int y = x / 2;
21 return y * 2;
24 _Complex unsigned int
25 qux (_Complex unsigned int x)
27 _Complex unsigned int y = x * 2;
28 return y / 2;