OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle60.C] - Rev 718

Go to most recent revision | Compare with Previous | Blame | View Log

// PR c++/51854
// { dg-options "" }

template <unsigned N> struct A;

template <typename U, typename V>
char foo(U, V);

// { dg-final { scan-assembler "_Z3barIiEvP1AIXszcl3foocvT__ELCi0_42EEEE" } }
template <typename U>
void bar(A<sizeof(foo(U(), 42i))> *);

// { dg-final { scan-assembler "_Z3bazIiEvP1AIXszcl3foocvT__ELCf00000000_00000000EEEE" } }
template <typename U>
void baz(A<sizeof(foo(U(), 0.0fj))> *);

int main() {
   bar<int>(0);
   baz<int>(0);
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.