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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/tags/gnu-dev/fsf-gcc-snapshot-1-mar-12/or1k-gcc/gcc/testsuite/g++.dg/pch
    from Rev 693 to Rev 783
    Reverse comparison

Rev 693 → Rev 783

/externc-1.Hs
0,0 → 1,?rev2len?
#include <stddef.h>
/empty.C
0,0 → 1,5
#include "empty.H"
int main()
{
return 0;
}
/template-1.Hs
0,0 → 1,5
template<int> struct A
{
enum { a, b = a };
void foo(A<b>);
};
/wchar-1.C
0,0 → 1,5
#include "wchar-1.H"
/pch.Hs
0,0 → 1,5
// empty file
/array-1.Hs
0,0 → 1,4
struct A
{
template <class T> static T foo (T[3][3]);
};
/externc-1.C
0,0 → 1,6
#include "externc-1.H"
 
template <typename X> struct foo
{
X y;
};
/uninst.Hs
0,0 → 1,2
#include <bits/stl_algobase.h>
using namespace std;
/template-1.C
0,0 → 1,8
// PR c++/28217
 
#include "template-1.H"
 
int
main (void)
{
}
/pch.C
0,0 → 1,9
// { dg-options "-save-temps -fpch-preprocess -I." }
 
#include "pch.H"
int main()
{
return 0;
}
 
// { dg-final { cleanup-saved-temps ".s" } }
/system-1.Hs
0,0 → 1,9
#include <iostream>
/system-2.Hs
0,0 → 1,2
#include <iostream>
#include <string>
/array-1.C
0,0 → 1,15
// PR c++/36852
 
#include "array-1.H"
 
template <class T>
T
A::foo (T t[3][3])
{
return t[0][1];
}
 
int
main ()
{
}
/static-1.Hs
0,0 → 1,13
class A
{
public:
int val;
 
~A() {
int i = 2;
}
 
static void StaticTest() {
static A a;
}
};
/uninst.C
0,0 → 1,8
#include "uninst.H"
 
template <class Type> void FOO() { }
 
int main() {
FOO<char>(); // stage 2 needs this
return min<unsigned long>(5, 0);
}
/local-1.Hs
0,0 → 1,7
template<typename T> void func()
{
struct object
{
object() {}
};
}
/system-1.C
0,0 → 1,7
#include "system-1.H"
 
int main()
{
std::cout << "hello world!" << '\n';
return 0;
}
/system-2.C
0,0 → 1,7
#include "system-2.H"
 
int main()
{
std::cout << "hello world!" << std::endl;
return 0;
}
/pch.exp
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
# <http://www.gnu.org/licenses/>.
 
# 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
/static-1.C
0,0 → 1,10
#include "static-1.H"
int LocalStaticTest()
{
static A sa;
}
 
int main(int argc, char **argv)
{
A::StaticTest();
}
/empty.Hs --- local-1.C (nonexistent) +++ local-1.C (revision 783) @@ -0,0 +1,6 @@ +#include "local-1.H" +int main() +{ + func (); + return 0; +}
/wchar-1.Hs
0,0 → 1,2
#include <stddef.h>
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.