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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [typeid1.C] - Rev 823

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

// { dg-do compile }
#include <typeinfo>
#include <iostream>

struct foo { double f(int); };

int main() {
  double f (int);
  const std::type_info &r = typeid (f);
  std::cout << typeid(f).name() << std::endl;
  std::cout << typeid(foo::f).name() << std::endl; /* { dg-error "" } */
}

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

powered by: WebSVN 2.1.0

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