Commit 351b736c by Nathan Sidwell Committed by Nathan Sidwell

crash63.C: Expect a POD warning

        * g++.old-deja/g++.brendan/crash63.C: Expect a POD warning
        * g++.old-deja/g++.brendan/crash64.C: Likewise
        * g++.old-deja/g++.brendan/overload8.C: Likewise

From-SVN: r28476
parent 52fb2769
1999-08-03 Nathan Sidwell <nathan@acm.org> 1999-08-03 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.brendan/crash63.C: Expect a POD warning
* g++.old-deja/g++.brendan/crash64.C: Likewise
* g++.old-deja/g++.brendan/overload8.C: Likewise
1999-08-03 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.other/struct1.C: New test. * g++.old-deja/g++.other/struct1.C: New test.
1999-08-03 Nathan Sidwell <nathan@acm.org> 1999-08-03 Nathan Sidwell <nathan@acm.org>
......
...@@ -12,4 +12,4 @@ class UnitList ...@@ -12,4 +12,4 @@ class UnitList
UnitList (...); UnitList (...);
}; };
UnitList unit_list (String("keV")); UnitList unit_list (String("keV")); // WARNING - cannot pass non-pod
...@@ -16,4 +16,4 @@ struct metatype { int base_list; }; ...@@ -16,4 +16,4 @@ struct metatype { int base_list; };
static _type_desc _type_metatype("metatype", sizeof(metatype), static _type_desc _type_metatype("metatype", sizeof(metatype),
(RF_Ptr)0, 0, 1, 1, (RF_Ptr)0, 0, 1, 1,
_im_pers_mem_spec( ((size_t)&((( metatype *)0)-> base_list )) , 1)); _im_pers_mem_spec( ((size_t)&((( metatype *)0)-> base_list )) , 1)); // WARNING - cannot pass non-pod
...@@ -6,4 +6,4 @@ class Complex{public:double re,im; ...@@ -6,4 +6,4 @@ class Complex{public:double re,im;
void zxcvbnm(int n,...){n=1;} void zxcvbnm(int n,...){n=1;}
int main(){complex c; Complex C; int main(){complex c; Complex C;
zxcvbnm(1,c); zxcvbnm(1,c);
zxcvbnm(1,C);} zxcvbnm(1,C);} // WARNING - cannot pass non pod
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment