2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / operators33.C
blobd0aa92169d0ae1456675cabea0c0c4febec9ef47
1 // { 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>
9 #include <stdio.h>
12 struct fcell {
13         FILE *fd;
14         struct fcell *next;
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         }