URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-old/gcc-4.2.2/gcc/testsuite/g++.old-deja/g++.gb
- from Rev 154 to Rev 816
- ↔ Reverse comparison
Rev 154 → Rev 816
/scope05.C
0,0 → 1,12
// { dg-do assemble } |
// GROUPS passed gb scope |
struct C { |
void foo (int); |
void foo (char); |
|
struct D { |
void foo (); |
}; |
}; |
|
void C::D::foo () { } |
scope05.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope06.C
===================================================================
--- scope06.C (nonexistent)
+++ scope06.C (revision 816)
@@ -0,0 +1,14 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+struct C {
+ struct D {
+ int x;
+ void foo ();
+ };
+ const int Ok = 0; // { dg-error "" } initialization forbidden
+};
+
+void C::D::foo ()
+{
+ x = Ok;
+}
scope06.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope07.C
===================================================================
--- scope07.C (nonexistent)
+++ scope07.C (revision 816)
@@ -0,0 +1,11 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+struct D {
+ friend class A;
+ friend class B;
+ friend class C;
+
+ void foo ();
+};
+
+void D::foo () { }
scope07.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope08.C
===================================================================
--- scope08.C (nonexistent)
+++ scope08.C (revision 816)
@@ -0,0 +1,14 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+template class C {
+public:
+ int f (X ob) { return 0; }
+ int g (X ob) { return f (ob); }
+};
+
+class D {
+public:
+ class E { public: E (); };
+
+ C x;
+};
scope08.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope09.C
===================================================================
--- scope09.C (nonexistent)
+++ scope09.C (revision 816)
@@ -0,0 +1,16 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+class enclose {
+ int e;
+protected:
+ class nested {
+ int n;
+ };
+};
+
+class derived : public enclose {
+protected:
+ class nested_derived : public nested {
+ int nd;
+ };
+};
scope09.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope01.C
===================================================================
--- scope01.C (nonexistent)
+++ scope01.C (revision 816)
@@ -0,0 +1,4 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+struct c { typedef int t; };
+struct d { typedef char t; };
scope01.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope10.C
===================================================================
--- scope10.C (nonexistent)
+++ scope10.C (revision 816)
@@ -0,0 +1,9 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+void Foo (void)
+{
+ class C {
+ public:
+ virtual int foo (void) { return 0; };
+ };
+}
scope10.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope02.C
===================================================================
--- scope02.C (nonexistent)
+++ scope02.C (revision 816)
@@ -0,0 +1,10 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+struct c {
+ typedef int t;
+ struct d {
+ void foo (t &);
+ };
+};
+
+void c::d::foo (t & x) { }
scope02.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope11.C
===================================================================
--- scope11.C (nonexistent)
+++ scope11.C (revision 816)
@@ -0,0 +1,28 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+template class fixed_array {
+public:
+ T _array[N];
+};
+
+class Hash {
+public:
+ Hash (int);
+};
+
+typedef fixed_array ipAddress_t;
+
+class IPAddress {
+protected:
+ long _i;
+public:
+ IPAddress (ipAddress_t ip) { }
+ IPAddress () { }
+ IPAddress netMask () { return *this; }
+ operator Hash ();
+};
+
+IPAddress::operator Hash ()
+{
+ return Hash (_i);
+}
scope11.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: README
===================================================================
--- README (nonexistent)
+++ README (revision 816)
@@ -0,0 +1,20 @@
+These are my C++ signature and class-scoping tests.
+
+In changing my signature tests to DejaGnu style, I reduced the number
+of tests from 40 to 25. They should still test the same features,
+though. All of these tests are run. I don't have any tests yet to
+check correct reporting of errors/warnings.
+
+The class scoping tests were in part derived from Vince Russo's
+Renaissance operating system and in part written by myself in helping
+Niklas Hallqvist test his rewrite of the scoping code. I had shared
+some of these tests with Niklas, others were included in bug reports I
+had sent to {g++,gcc}@cygnus.com. It is, therefore, possible that
+these tests duplicate tests in other directories.
+
+All files in this directory, including this file, are Copyright
+FSF 1995, 2007 and fall under the GPL version 3 or later.
+
+Gerald Baumgartner
+gb@cs.purdue.edu
+March 1, 1995
README
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope03.C
===================================================================
--- scope03.C (nonexistent)
+++ scope03.C (revision 816)
@@ -0,0 +1,10 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+struct c {
+ class t { };
+ struct d {
+ void foo (t &);
+ };
+};
+
+void c::d::foo (t & x) { }
scope03.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope12.C
===================================================================
--- scope12.C (nonexistent)
+++ scope12.C (revision 816)
@@ -0,0 +1,35 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+template class FixedArray_t {
+public:
+ T _array[N];
+
+ FixedArray_t () { }
+};
+
+typedef FixedArray_t IPAddress_t;
+
+class IPAddress {
+public:
+ IPAddress (IPAddress_t ip) { }
+
+ operator IPAddress_t ()
+ {
+ IPAddress_t rv;
+ return rv;
+ }
+
+ IPAddress () { }
+};
+
+class DatagramHeader {
+public:
+ IPAddress _src;
+
+ void setHeader (IPAddress);
+};
+
+void
+DatagramHeader::setHeader (IPAddress)
+{
+}
scope12.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope04.C
===================================================================
--- scope04.C (nonexistent)
+++ scope04.C (revision 816)
@@ -0,0 +1,15 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+struct a {
+ struct c {
+ struct d {
+ static int foo (int);
+ };
+ };
+
+ struct b {
+ int foo (int x) { return c::d::foo (x); }
+ };
+};
+
+int a::c::d::foo (int) { return 0; }
scope04.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: scope13.C
===================================================================
--- scope13.C (nonexistent)
+++ scope13.C (revision 816)
@@ -0,0 +1,11 @@
+// { dg-do assemble }
+// GROUPS passed gb scope
+class X {
+public:
+};
+
+class Y {
+public:
+ void X();
+ ::X X(int);
+};
scope13.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property