// GROUPS passed old-abort
#include<iostream.h>
-const /* int */ keys = 10;
-const /* int */ key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]};
+const int keys = 10;
+const int key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]};
void main()
{ // ERROR - return type for main
+++ /dev/null
-// g++ 1.37.1 bug 900519_08
-
-// g++ fails to accept the following legal syntax for an invocation of the
-// new operator, in which the type specifier is implicitly "int".
-
-// cfront 2.0 passes this test.
-
-// keywords: syntax, operator new, type specifier, type qualifier
-
-void test ()
-{
- new const /* int */ (1); // gets bogus error
-}
-
-int main () { return 0; }
// Build don't link:
class PhysicalPageId {
- const maximum_block_numbers = 2;
+ const int maximum_block_numbers = 2;
long block_number[maximum_block_numbers];
};
};
struct B {
- friend operator== (B, int);
+ friend int operator== (B, int);
};
int foo (A& a) {
// PRMS id: 6863
-extern "C" printf(const char *, ...);
+extern "C" int printf(const char *, ...);
extern "C" void abort();
enum ENUM {E1=0, E2 };
template <class Type>
void Array<Type>::print(ostream& os)
{
- const lineLength = 12;
+ const int lineLength = 12;
os << "( " << size << " )< ";
for (int ix = 0; ix < size; ++ix) {
// GROUPS passed vtable
-extern "C" printf(...);
+extern "C" int printf(...);
enum { vf_request, vf_event } want;
int errs = 0;
// GROUPS passed
-extern "C" printf(...);
+extern "C" int printf(...);
extern "C" void exit(int);
class A {
// Build don't link:
// Special g++ Options: -pedantic-errors
-const ci=10, *pc = &ci, *const cpc = pc, **ppc;
+const int ci=10, *pc = &ci, *const cpc = pc, **ppc;
int i, *p, *const cp = &i;
main()
// Build don't link:
// Special g++ Options: -pedantic-errors
-const ci=10, *pc = &ci, *const cpc = pc, **ppc;
+const int ci=10, *pc = &ci, *const cpc = pc, **ppc;
int i, *p, *const cp = &i;
main()
// GROUPS passed vtable
-extern "C" printf (const char *, ...);
+extern "C" int printf (const char *, ...);
extern "C" void exit(int);
class A {
// GROUPS vtable
-extern "C" printf (const char *, ...);
+extern "C" int printf (const char *, ...);
class A
{
class STRLIdentifier;
-extern x(List_DL<STRLIdentifier *>);
-extern x(List_DLS<STRLIdentifier *>);
+extern int x(List_DL<STRLIdentifier *>);
+extern int x(List_DLS<STRLIdentifier *>);
-extern x(Set<STRLIdentifier *>);
-extern x(Set_DL<STRLIdentifier *>);
-extern x(Set_DLp<STRLIdentifier *>);
+extern int x(Set<STRLIdentifier *>);
+extern int x(Set_DL<STRLIdentifier *>);
+extern int x(Set_DLp<STRLIdentifier *>);
-extern x(Graph<STRLIdentifier *>);
+extern int x(Graph<STRLIdentifier *>);
class STRLIdentifier {
char buf[10];
extern int operator==(vertex<STRLIdentifier*>&, vertex<STRLIdentifier*>&); // ERROR - const subversion
extern int operator==(STRLIdentifier&, STRLIdentifier&); // ERROR - fn ref in err msg
-extern x(List_DLSp<STRLIdentifier *>);
+extern int x(List_DLSp<STRLIdentifier *>);
template class Graph<STRLIdentifier *>;
template class List_DLS<vertex<STRLIdentifier *> >;