blob: 9b2cd7e7b4961f3372639fe4a89d4d2befafdcdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -mno-sse -mno-skip-rax-setup" } */
/* { dg-final { scan-assembler-times "xorl\[\\t \]*\\\%eax,\[\\t \]*%eax" 2 } } */
void foo (const char *, ...);
void
test1 (void)
{
foo ("%d", 20);
}
int
test2 (void)
{
foo ("%d", 20);
return 3;
}
|