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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900519_05.C] - Rev 822

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

// { dg-do run  }
// g++ 1.37.1 bug 900519_05

// g++ fails to allow the use of function-reference types.

// cfront 2.0 passes this test.

// keywords: function types, reference types

typedef void (func_type) (int, int);
typedef func_type& func_ref_type;               

void function (int arg1, int arg2)
{
}

func_type& global_func_ref1 = function;         

int main () { return 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.