diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/operators33.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/operators33.C | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators33.C b/gcc/testsuite/g++.old-deja/g++.law/operators33.C new file mode 100644 index 000000000..87e50941d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.law/operators33.C @@ -0,0 +1,28 @@ +// { dg-do assemble } +// GROUPS passed operators +// opr-new file +// From: flisakow@cae.wisc.edu +// Date: Thu, 1 Sep 94 18:21:09 CDT +// Subject: g++ bug? +// Message-ID: <9409012321.AA05346@hprisc-19.cae.wisc.edu> + +#include <stdio.h> + + +struct fcell { + FILE *fd; + struct fcell *next; +}; + + +class FStack { +public: + struct fcell *top; + FStack() { top = NULL ; } + inline void push(FILE * fd1, int line_num, char *fname = NULL) { + struct fcell *tmp = new struct fcell; + tmp->fd = fd1; + tmp->next = top; + top = tmp ; + } +}; |