blob: fda05b7566dda534de5eddc286c669fea7fd1587 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* There should be 3 occurrences of .LC0 in the code:
one for the definition of "0",
one for use in test1() and
one for use in test2().
FIXME: At the moment m68k GCC does not optimize test1() to nop
for some reason. */
/* { dg-final { scan-assembler-times ".LC0" 3 } } */
void dummy(char *arg);
void test1(void)
{
char tmp[2] = "0";
}
void test2(void)
{
dummy("0");
}
|