Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / const-uniq-1.c
blob8172c678b246807e3385f732da97d6436fc821eb
1 /* Verify that the 2 constant initializers are uniquized. */
3 /* { dg-do compile } */
4 /* { dg-options "-Os -fdump-tree-gimple" } */
6 int lookup1 (int i)
8 int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
9 return a[i];
12 int lookup2 (int i)
14 int a[] = { 0, 1, 2, 3, 4, 5, 6, 7 };
15 return a[i+1];
18 /* { dg-final { scan-tree-dump-times "L\\\$?C0" 2 "gimple" } } */
19 /* { dg-final { cleanup-tree-dump "gimple" } } */