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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [operator1.C] - Rev 816

Compare with Previous | Blame | View Log

// Tests whether g++ can handle large number of operators
// { dg-do compile }

#define OP0(n) struct I##n { int i; }; operator I##n ();
#define OP1(n) OP0(n)
#define OP2(n) OP1(n##0) OP1(n##1) OP1(n##2) OP1(n##3) OP1(n##4)
#define OP3(n) OP2(n##0) OP2(n##1) OP2(n##2) OP2(n##3) OP2(n##4)
struct S {
  OP3(0) OP3(1) OP3(2) OP3(3) OP3(4) OP3(5)
};

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.