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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [other/] [vararg-1.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// C++/15119
// C++/15119
//  This ICEd in substitute_placeholder_in_expr because it did not
//  This ICEd in substitute_placeholder_in_expr because it did not
//  implement the 4 element trees.
//  implement the 4 element trees.
//  Orginal test by: 
//  Orginal test by: 
//  Reduced by: 
//  Reduced by: 
/* { dg-do compile } */
/* { dg-do compile } */
template
template
const T& xmin(const T& a, const T& b);
const T& xmin(const T& a, const T& b);
void bar (char *, ...);
void bar (char *, ...);
char const* descs[4];
char const* descs[4];
int main() {
int main() {
    int t = 1;
    int t = 1;
    char buf[100];
    char buf[100];
    bar( buf, descs[ xmin(t-1,4) ], 0 );
    bar( buf, descs[ xmin(t-1,4) ], 0 );
    return 0;
    return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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