aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bob')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/inherit1.C26
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/packed1.C17
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/protected1.C42
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/template3.C49
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/template4.C21
5 files changed, 5 insertions, 150 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C b/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
index 4e77de34884..765014bc66d 100644
--- a/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
+++ b/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
@@ -1,25 +1 @@
-// Build don't link:
-class A {
-char str[10];
-public:
- char* m1 () { return str;};
-};
-
-class C : public A {
-public:
-};
-
-class B : public A {
-public:
- char* m1 () { C::m1(); return ""; } // ERROR -
-};
-
-main () {
-A a;
-B b;
-C c;
-
-a.m1();
-c.m1();
-b.m1();
-}
+int main () {
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/packed1.C b/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
index 27ae03e4a05..b5287f33795 100644
--- a/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
+++ b/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
@@ -1,16 +1 @@
-main() {
- struct s
- {
- int a;
- short b;
- } __attribute__((packed)) t;
-
- if (sizeof (t) != (sizeof(int)+sizeof(short)))
- {
- return 1;
- }
- else
- {
- return 0;
- }
-}
+int
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/protected1.C b/gcc/testsuite/g++.old-deja/g++.bob/protected1.C
index e83f3e40b73..b5287f33795 100644
--- a/gcc/testsuite/g++.old-deja/g++.bob/protected1.C
+++ b/gcc/testsuite/g++.old-deja/g++.bob/protected1.C
@@ -1,41 +1 @@
-// Build don't link:
-class A {
-public:
- int i;
- A(int j) : i(j){}
-};
-
-class B : protected A {
-public:
- B(int j) : A(j){}
- void f(){
- A k(*this);
- }
-};
-
-class C : protected B {
-public:
- C(int j) : B(j){}
- void f();
-
- void g(){
- A k(i);
- }
-};
-
-
-class D : public C {
-public:
- D(int w) : C(i) {}
- void j() { A k(*this); }
- void h() { i=3; }
-};
-
-void C::f() {
- A k(*this);
-}
-
-B b(3);
-main() {
- A *z = &b; // ERROR -
-}
+int
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/template3.C b/gcc/testsuite/g++.old-deja/g++.bob/template3.C
index 17378425a26..b5287f33795 100644
--- a/gcc/testsuite/g++.old-deja/g++.bob/template3.C
+++ b/gcc/testsuite/g++.old-deja/g++.bob/template3.C
@@ -1,48 +1 @@
-// Build don't link:
-// prms-id: 9979
-
-template < class Referencee >
-class Referencer
-{
-public:
- Referencer() {}
-};
-
-template <class T>
-class List
-{
-public:
- List() {}
-};
-
-template<class T, class KEY>
-class Dictionary
-{
-public:
- Dictionary() : i_buckets (new List<T>[1234]) {}
- ~Dictionary() { delete [] i_buckets; }
-
- List<T> * i_buckets;
-};
-
-class Exchangeable {};
-class ExchangeableHandle {};
-
-class ExchangeableList
- : public Dictionary<Referencer<Exchangeable>, ExchangeableHandle>
-{
-public:
- ExchangeableList(int size=0);
-};
-
-class ObjectExchange
-{
-public:
- ObjectExchange() {};
-
- ExchangeableList i_theWatchList; // Instruments being monitored
-};
-
-main()
-{
-}
+int
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/template4.C b/gcc/testsuite/g++.old-deja/g++.bob/template4.C
index 8d86fa37ab6..b5287f33795 100644
--- a/gcc/testsuite/g++.old-deja/g++.bob/template4.C
+++ b/gcc/testsuite/g++.old-deja/g++.bob/template4.C
@@ -1,20 +1 @@
-// prms-id: 10166
-
-template <class A>
-class B {
- public:
- int f() {
- for(int x=0;x<10;x++) {
- continue;
- return 1;
- }
- return 0;
- }
- private:
- A w;
-};
-
-main() {
- B<int> c;
- return c.f();
-}
+int