PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56228.c
blob6e2b4b1ab9913176b3731ebf904ba87d188bef92
1 /* PR target/56228 */
2 /* { dg-do assemble } */
3 /* { dg-options "-O2" } */
4 /* { dg-skip-if "accessing program memory with data memory address" { "avr-*-*" } } */
6 short a[14] = { 1, 2 };
7 short b[15] = { 3, 4 };
9 int
10 foo ()
12 void (*fna) (void) = (void (*) (void)) a;
13 void (*fnb) (void) = (void (*) (void)) b;
14 fna ();
15 fnb ();
16 return a[1] == b[1];