1 // { dg-do compile }
2 // { dg-options "-O2 -fdump-tree-fre1" }
3 
4 struct mytest
5 {
6   float a;
7   char buf[256];
8 };
9 
foo(mytest * m,int * i)10 int foo(mytest *m, int *i)
11 {
12   int tmp = *i;
13   m->a = 10.0f;
14   return tmp + *i;
15 }
16 
17 // we should be able to CSE *i despite mytest having a cbar[] buffer
18 // and thus being subject to TYPE_TYPELESS_STORAGE
19 // { dg-final { scan-tree-dump-times "\\*i" 1 "fre1" } }
20