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++.dg/pch
    from Rev 149 to Rev 154
    Reverse comparison

Rev 149 → Rev 154

/empty.C
0,0 → 1,5
#include "empty.H"
int main()
{
return 0;
}
empty.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: externc-1.Hs =================================================================== --- externc-1.Hs (nonexistent) +++ externc-1.Hs (revision 154) @@ -0,0 +1 @@ +#include Index: template-1.Hs =================================================================== --- template-1.Hs (nonexistent) +++ template-1.Hs (revision 154) @@ -0,0 +1,5 @@ +template struct A +{ + enum { a, b = a }; + void foo(A); +}; Index: pch.Hs =================================================================== --- pch.Hs (nonexistent) +++ pch.Hs (revision 154) @@ -0,0 +1 @@ +// empty file Index: wchar-1.C =================================================================== --- wchar-1.C (nonexistent) +++ wchar-1.C (revision 154) @@ -0,0 +1 @@ +#include "wchar-1.H"
wchar-1.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: externc-1.C =================================================================== --- externc-1.C (nonexistent) +++ externc-1.C (revision 154) @@ -0,0 +1,6 @@ +#include "externc-1.H" + +template struct foo +{ + X y; +};
externc-1.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: uninst.Hs =================================================================== --- uninst.Hs (nonexistent) +++ uninst.Hs (revision 154) @@ -0,0 +1,2 @@ +#include +using namespace std; Index: template-1.C =================================================================== --- template-1.C (nonexistent) +++ template-1.C (revision 154) @@ -0,0 +1,8 @@ +// PR c++/28217 + +#include "template-1.H" + +int +main (void) +{ +}
template-1.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: system-1.Hs =================================================================== --- system-1.Hs (nonexistent) +++ system-1.Hs (revision 154) @@ -0,0 +1 @@ +#include Index: pch.C =================================================================== --- pch.C (nonexistent) +++ pch.C (revision 154) @@ -0,0 +1,9 @@ +// { dg-options "-save-temps -fpch-preprocess -I." } + +#include "pch.H" +int main() +{ + return 0; +} + +// { dg-final { cleanup-saved-temps } }
pch.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: system-2.Hs =================================================================== --- system-2.Hs (nonexistent) +++ system-2.Hs (revision 154) @@ -0,0 +1,2 @@ +#include +#include Index: static-1.Hs =================================================================== --- static-1.Hs (nonexistent) +++ static-1.Hs (revision 154) @@ -0,0 +1,13 @@ +class A +{ +public: + int val; + + ~A() { + int i = 2; + } + + static void StaticTest() { + static A a; + } +}; Index: uninst.C =================================================================== --- uninst.C (nonexistent) +++ uninst.C (revision 154) @@ -0,0 +1,8 @@ +#include "uninst.H" + +template void FOO() { } + +int main() { + FOO(); // stage 2 needs this + return min(5, 0); +}
uninst.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: local-1.Hs =================================================================== --- local-1.Hs (nonexistent) +++ local-1.Hs (revision 154) @@ -0,0 +1,7 @@ +template void func() +{ + struct object + { + object() {} + }; +} Index: system-1.C =================================================================== --- system-1.C (nonexistent) +++ system-1.C (revision 154) @@ -0,0 +1,7 @@ +#include "system-1.H" + +int main() +{ + std::cout << "hello world!" << '\n'; + return 0; +}
system-1.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: system-2.C =================================================================== --- system-2.C (nonexistent) +++ system-2.C (revision 154) @@ -0,0 +1,7 @@ +#include "system-2.H" + +int main() +{ + std::cout << "hello world!" << std::endl; + return 0; +}
system-2.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: pch.exp =================================================================== --- pch.exp (nonexistent) +++ pch.exp (revision 154) @@ -0,0 +1,39 @@ +# Copyright (C) 1997, 2002, 2003, 2007 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# . + +# GCC testsuite for precompiled header interaction, +# that uses the `dg.exp' driver. + +# Load support procs. +load_lib "g++-dg.exp" +load_lib dg-pch.exp + +# Initialize `dg'. +dg-init + +set old_dg_do_what_default "${dg-do-what-default}" + +# Main loop. +foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] { + # We don't try to use the loop-optimizing options, since they are highly + # unlikely to make any difference to PCH. + dg-pch $subdir $test [list "-g" "-O2 -g" "-O2"] ".H" +} + +set dg-do-what-default "$old_dg_do_what_default" + +# All done. +dg-finish Index: static-1.C =================================================================== --- static-1.C (nonexistent) +++ static-1.C (revision 154) @@ -0,0 +1,10 @@ +#include "static-1.H" +int LocalStaticTest() +{ + static A sa; +} + +int main(int argc, char **argv) +{ + A::StaticTest(); +}
static-1.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: empty.Hs =================================================================== Index: local-1.C =================================================================== --- local-1.C (nonexistent) +++ local-1.C (revision 154) @@ -0,0 +1,6 @@ +#include "local-1.H" +int main() +{ + func (); + return 0; +}
local-1.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: wchar-1.Hs =================================================================== --- wchar-1.Hs (nonexistent) +++ wchar-1.Hs (revision 154) @@ -0,0 +1,2 @@ +#include +const wchar_t test_var[] = L"wide string";

powered by: WebSVN 2.1.0

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