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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [static_cast7.C] - Blame information for rev 754

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Regression test for bug 39415 (and its duplicate 44916).
2
struct S {};
3
struct T : S {};
4
int f(const T*) {}
5
void f(T*);
6
int main() {
7
  S* s(0);
8
  int a = f(static_cast(s));
9
  int b = f(static_cast(0));
10
}

powered by: WebSVN 2.1.0

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