aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/sibcall-11.c
blob: 12f6d9c9c34ea61aa1df747f26844e40281dfba4 (plain)
1
2
3
4
5
6
7
8
// Test for sibcall optimization with empty struct.
// { dg-options "-O2" }
/* { dg-additional-options "-fno-PIE" { target ia32 } } */
// { dg-final { scan-assembler "jmp" { target i?86-*-* x86_64-*-* } } }

struct A { };
void f(struct A);
void g(struct A a) { f(a); }