LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr33961.c
blob43403ed30a9dd8f3dd37c06aa983a6dd67841def
1 /* PR tree-optimization/33961 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -ftree-cselim" } */
5 void decode(char *d, int len);
7 void decode(char *d, int len) {
8 int i = len - 1;
9 while(i >= 0) {
10 d[i];
11 if(d[i] == 0)
12 d[i]=' ';
13 if(d[i] == 1)
14 d[i]='x';
15 i--;
19 int main(int argc, char **argv)
21 decode("this bug is really weird", 24);
22 return 0;