repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr80287.C
blob
d01e73371de37ec857ee671f741d7753e2144926
1
// PR c++/80287
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-g" }
4
5
struct A {
6
operator long() { return 0; }
7
} __attribute__((__may_alias__));
8
9
struct {
10
A ino;
11
} a;
12
13
char b = a.ino;