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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.benjamin/] [tem06.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do run  }
// { dg-do run  }
// 980945 bkoz
// 980945 bkoz
// test for correct operators at link time
// test for correct operators at link time
/*
/*
/tmp/cca211431.o: In function `void blah >(foo const &)':
/tmp/cca211431.o: In function `void blah >(foo const &)':
/tmp/cca211431.o(.void gnu.linkonce.t.blah >(foo const &)+0x1e): undefined reference to `void x(int const &)'
/tmp/cca211431.o(.void gnu.linkonce.t.blah >(foo const &)+0x1e): undefined reference to `void x(int const &)'
*/
*/
template
template
class foo {
class foo {
public:
public:
  foo () {}
  foo () {}
  friend void x (const T &) { }
  friend void x (const T &) { }
};
};
void x(const int &);
void x(const int &);
template
template
void blah (const T &) {
void blah (const T &) {
  T y;
  T y;
  x (4);
  x (4);
}
}
int main () {
int main () {
  const foo v;
  const foo v;
  blah (v);
  blah (v);
}
}
/*
/*
fno-exceptions -fno-rtti
fno-exceptions -fno-rtti
1.98r1.o:
1.98r1.o:
00000000 W __t3foo1Zi
00000000 W __t3foo1Zi
00000000 W blah__H1Zt3foo1Zi_RCX01_v
00000000 W blah__H1Zt3foo1Zi_RCX01_v
00000000 t gcc2_compiled.
00000000 t gcc2_compiled.
00000000 T main
00000000 T main
         U x__H1Zi_RCX01_v
         U x__H1Zi_RCX01_v
1.egcs.o:
1.egcs.o:
00000000 W __t3foo1Zi
00000000 W __t3foo1Zi
00000000 W blah__H1Zt3foo1Zi_RCX01_v
00000000 W blah__H1Zt3foo1Zi_RCX01_v
00000000 t gcc2_compiled.
00000000 t gcc2_compiled.
00000000 T main
00000000 T main
00000000 W x__FRCi
00000000 W x__FRCi
the reason this goes away at -O is because the U or W function is
the reason this goes away at -O is because the U or W function is
elided completely.
elided completely.
*/
*/
 
 

powered by: WebSVN 2.1.0

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