libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / gimplefe-45.c
blob8e1447ff3aea8ab067f835c2a4bce345bc163b77
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fgimple" } */
4 /* This used to ICE when simplifying (A & C) != 0 ? D : 0
5 for pointer types. */
7 int *__GIMPLE ()
8 p (int n)
10 int *_2;
11 int *_t;
12 int *_t1;
13 _Bool _3;
14 _t = (int*)8;
15 _t1 = 0;
16 n = n & 2;
17 _3 = n != 0;
18 _2 = _3 ? _t : _t1;
19 return _2;