summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/merge-all-constants-1.c
blob: 5c9cd06e925e366993d798a04d00ab0da24c4273 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-w -O2 -fmerge-all-constants" } */

const char str1[36] = "0123456789abcdefghijklmnopqrstuvwxyz";
const char str2[38] = "0123456789abcdefghijklmnopqrstuvwxyz";
const char str3[10] = "0123456789abcdefghijklmnopqrstuvwxyz";

/* { dg-final { scan-assembler-not "\.rodata\.str" } } */