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++.other/] [defarg2.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run  }
2
// Test that default args don't mess up pmf type comparisons.
3
// Contributed by Jason Merrill .
4
 
5
struct A {
6
  void f (int = 0) { }
7
};
8
 
9
int
10
main ()
11
{
12
  void (A::*p)(int) = 0;
13
  p = &A::f;
14
  if (p != &A::f)
15
    return 1;
16
}

powered by: WebSVN 2.1.0

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