Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr24689.c
blob4fe74b65882f1df10c2927a5ffd8b83c61049cfa
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 extern void bar (unsigned int);
6 int
7 foo (void)
9 char buf[1] = { 3 };
10 const char *p = buf;
11 const char **q = &p;
12 unsigned int ch;
13 switch (**q)
15 case 1: ch = 5; break;
16 default: ch = 0; break;
19 bar (ch);
20 return ch;
23 /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */
24 /* { dg-final { cleanup-tree-dump "optimized" } } */