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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic4.C] - Rev 701

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

// { dg-options "-std=gnu++0x -fabi-version=0" }
// { dg-do compile }
template<typename... Args>
class tuple {};

void f_none(tuple<>) {}
void f_one(tuple<int>) {}
void f_two(tuple<int, float>) {}
void f_nested(tuple<int, tuple<double, char>, float>) { }


// { dg-final { scan-assembler "_Z6f_none5tupleIJEE" } }
// { dg-final { scan-assembler "_Z5f_one5tupleIJiEE" } }
// { dg-final { scan-assembler "_Z5f_two5tupleIJifEE" } }
// { dg-final { scan-assembler "_Z8f_nested5tupleIJiS_IJdcEEfEE" } }

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.