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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [operators33.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed operators
3
// opr-new file
4
// From: flisakow@cae.wisc.edu
5
// Date:     Thu, 1 Sep 94 18:21:09 CDT
6
// Subject:  g++ bug?
7
// Message-ID: <9409012321.AA05346@hprisc-19.cae.wisc.edu>
8
 
9
#include 
10
 
11
 
12
struct fcell {
13
        FILE *fd;
14
        struct fcell *next;
15
};
16
 
17
 
18
class FStack {
19
public:
20
        struct fcell *top;
21
        FStack() { top = NULL ; }
22
        inline void push(FILE * fd1, int line_num, char *fname = NULL) {
23
                struct fcell *tmp = new struct fcell;
24
                tmp->fd = fd1;
25
                tmp->next = top;
26
                top = tmp ;
27
        }
28
};

powered by: WebSVN 2.1.0

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