PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / pr80287.C
blobd01e73371de37ec857ee671f741d7753e2144926
1 // PR c++/80287
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-g" }
5 struct A {
6   operator long() { return 0; }
7 } __attribute__((__may_alias__));
9 struct {
10   A ino;
11 } a;
13 char b = a.ino;