Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.law / operators33.C
blob87e50941d455c84dd1d40abf2c69b3c8d2bbfa3e
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         }