Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/abi/mangle-regparm1a.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } // { dg-options "-fabi-version=8 -Wabi -save-temps" } // { dg-final { scan-assembler "_Z18IndirectExternCallIPFviiEiEvT_T0_S3_" } } template <typename F, typename T> void IndirectExternCall(F f, T t1, T t2) { // { dg-warning "mangled name" } typedef F (*WrapF)(F); f (t1, t2); } __attribute__((regparm(3), stdcall)) void regparm_func (int i, int j) { if (i != 24 || j != 42) __builtin_abort(); } int main() { IndirectExternCall (regparm_func, 24, 42); }