OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/gnu-src/gcc-4.2.2/gcc/testsuite/g++.old-deja/g++.niklas
    from Rev 149 to Rev 154
    Reverse comparison

Rev 149 → Rev 154

/t137.C
0,0 → 1,6
// { dg-do assemble }
// GROUPS passed niklas nested-types
struct A {
struct B { void f (); };
struct C : B { void f () { B::f (); } };
};
t137.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: t128.C =================================================================== --- t128.C (nonexistent) +++ t128.C (revision 154) @@ -0,0 +1,5 @@ +// { dg-do assemble } +// GROUPS niklas uncaught default-construct +struct A { A (int); }; +struct B : A {}; // { dg-error "" } without ctor // ERROR - candidates +void f () { B (0); }// { dg-error "" } .*
t128.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: t119.C =================================================================== --- t119.C (nonexistent) +++ t119.C (revision 154) @@ -0,0 +1,6 @@ +// { dg-do assemble } +// GROUPS passed niklas i386 +unsigned long foo(unsigned long x) +{ + return x & ~0104000; +}
t119.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: t138.C =================================================================== --- t138.C (nonexistent) +++ t138.C (revision 154) @@ -0,0 +1,6 @@ +// { dg-do assemble } +// GROUPS passed niklas hiding +struct A; +void f (A*); +A* A; +void g () { f (A); }
t138.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: t129.C =================================================================== --- t129.C (nonexistent) +++ t129.C (revision 154) @@ -0,0 +1,6 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types +struct X { +struct A { A (int); }; +struct B : A { B (int a) : A (a) {} }; +};
t129.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: t139.C =================================================================== --- t139.C (nonexistent) +++ t139.C (revision 154) @@ -0,0 +1,7 @@ +// { dg-do assemble } +// { dg-options "-w" } +// GROUPS passed niklas hiding ARM +struct stat {}; +stat gstat; +int stat (struct stat*); +void f () { struct stat* ps; stat (ps); }
t139.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 154) @@ -0,0 +1,18 @@ +Date: Fri, 22 Jan 93 15:20:55 +0100 +From: niklas@della.appli.se (Niklas Hallqvist) +Message-Id: <9301221420.AA18489@della.appli.se> +Subject: g++.niklas DejaGnu sharfile + +These are my testcases in DejaGnu format. + +The tests which have "passed" in the groups variable do actually pass +on my local G++ so if there is a specific "passed" test you'd like to +see working in your version of G++ but it doesn't pass, contact me and +I'll dig up the specific patches you'll need. + +I have about a hundred or so unsorted testcases which are not +included in this archive, due to lack of time and boredom stemming +from writing .exp-files. But they will show up eventually. + +All these files, and this file are Copyright FSF 1993, 2007 and fall +under the GPL version 3 or later.
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: t120.C =================================================================== --- t120.C (nonexistent) +++ t120.C (revision 154) @@ -0,0 +1,5 @@ +// { dg-do assemble } +// GROUPS passed niklas ellipsis +typedef void (*T) (...); +void f (); +struct S { void g (T); void h() { g(f); } };// { dg-error "" }
t120.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: t121.C =================================================================== --- t121.C (nonexistent) +++ t121.C (revision 154) @@ -0,0 +1,5 @@ +// { dg-do assemble } +// GROUPS passed niklas ellipsis +void f (); +void g1 (void (*) (...)); void h1 () { g1 (f); }// { dg-error "" } .* +struct S { void g2 (void (*) (...)); void h2 () { g2 (f); } };// { dg-error "" }
t121.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: t130.C =================================================================== --- t130.C (nonexistent) +++ t130.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types +struct A; +struct B { struct A { A(int); }; struct C : A { C() : A (0) {} }; };
t130.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: t113.C =================================================================== --- t113.C (nonexistent) +++ t113.C (revision 154) @@ -0,0 +1,7 @@ +// { dg-do assemble } +// GROUPS passed niklas explicit-construct virtual-base +struct A {}; +struct B : virtual A { B(); }; +struct C : B {}; +struct D { D(C&); }; +D d(C());
t113.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: t122.C =================================================================== --- t122.C (nonexistent) +++ t122.C (revision 154) @@ -0,0 +1,14 @@ +// { dg-do assemble } +// GROUPS passed niklas dwarf +struct S { S(); }; + +inline void +foo ( + S a, + S b + ) +{} + +void +bar (S s1, S s2) +{ foo (s1, s2); }
t122.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: t131.C =================================================================== --- t131.C (nonexistent) +++ t131.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS passed niklas static-members +struct A { static A a; }; +A f () { return A::a; }
t131.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: t140.C =================================================================== --- t140.C (nonexistent) +++ t140.C (revision 154) @@ -0,0 +1,12 @@ +// { dg-do run } +// GROUPS passed niklas hiding local-types +extern "C" int printf (const char*, ...); +int val = 1; +void S () { printf ("FAIL\n"); } +void f () { printf ("PASS\n"); val = 0; } +int main () +{ + struct S { S () { f (); } }; + S (); + return val; +}
t140.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: t123.C =================================================================== --- t123.C (nonexistent) +++ t123.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS passed niklas dwarf +struct S { S(); }; +void f(S) {}
t123.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: t132.C =================================================================== --- t132.C (nonexistent) +++ t132.C (revision 154) @@ -0,0 +1,5 @@ +// { dg-do assemble } +// GROUPS passed niklas construct-destruct +struct S { S (); ~S (); }; +void f () { while (1) S s; } +
t132.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: t114.C =================================================================== --- t114.C (nonexistent) +++ t114.C (revision 154) @@ -0,0 +1,5 @@ +// { dg-do assemble } +// GROUPS passed niklas explicit-construct +struct A { A(); }; +struct B { B(A&); }; +B b(A());
t114.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: t141.C =================================================================== --- t141.C (nonexistent) +++ t141.C (revision 154) @@ -0,0 +1,6 @@ +// { dg-do assemble } +// { dg-options "-Wshadow" } +// GROUPS passed niklas scoping ARM +class X { X (int); }; +void X (int);// { dg-error "" } .*hides constructor.* +void f () { X (1); }
t141.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: t133.C =================================================================== --- t133.C (nonexistent) +++ t133.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types +struct A { struct B { void operator = (const B&); }; }; +void A::B::operator = (const B&) {}
t133.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: t124.C =================================================================== --- t124.C (nonexistent) +++ t124.C (revision 154) @@ -0,0 +1,10 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types static-members +struct A +{ + static void f (); + struct B + { + static void g () { f (); } + }; +};
t124.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: t115.C =================================================================== --- t115.C (nonexistent) +++ t115.C (revision 154) @@ -0,0 +1,7 @@ +// { dg-do assemble } +// GROUPS passed niklas virtual-base +struct A { A(); virtual void f(); }; +struct B : virtual A { B(); }; +struct C : B {}; +C *c = new C; +
t115.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: t125.C =================================================================== --- t125.C (nonexistent) +++ t125.C (revision 154) @@ -0,0 +1,10 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types static-members +struct A +{ + static void f (); + struct B + { + void h () { f (); } + }; +};
t125.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: t134.C =================================================================== --- t134.C (nonexistent) +++ t134.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS passed niklas static-members +extern "C" int f (); +struct A { static void f () {} };
t134.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: t126.C =================================================================== --- t126.C (nonexistent) +++ t126.C (revision 154) @@ -0,0 +1,11 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types static-members +struct A +{ + static void f (); + struct B + { + void g () {} + void h () {} + }; +};
t126.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: t135.C =================================================================== --- t135.C (nonexistent) +++ t135.C (revision 154) @@ -0,0 +1,27 @@ +// { dg-do compile } +// GROUPS niklas pt friend +template class C1 +{ +public: + void diddle_C2 (); +}; + +class C2 +{ + int data_member; // { dg-error "" } + friend class C1; // { dg-error "" } +}; + +class C2 C2_object; + +template void C1::diddle_C2 () +{ + C2_object.data_member = 99; // { dg-error "" } +} + +C1 C1_int_object; + +void foobar () +{ + C1_int_object.diddle_C2 (); +}
t135.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: t118.C =================================================================== --- t118.C (nonexistent) +++ t118.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS niklas pt +template class C1 {}; +class C1 C1_int_object;
t118.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: t127.C =================================================================== --- t127.C (nonexistent) +++ t127.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS passed niklas nested-types +struct A { struct B { ~B (); }; }; +A::B::~B () {}
t127.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: t136.C =================================================================== --- t136.C (nonexistent) +++ t136.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +// GROUPS niklas overloading +extern "C" void f (char*); +void f (const char*) {}
t136.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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.