| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fdump-ada-spec" } */ |
| 3 |
|
| 4 |
extern int convert_to_int (float f); |
| 5 |
extern int convert_to_int (double d); |
| 6 |
extern int convert_to_int (long double ld); |
| 7 |
|
| 8 |
class S1 |
| 9 |
{ |
| 10 |
S1 (); |
| 11 |
int convert_to_int (float f); |
| 12 |
int convert_to_int (double d); |
| 13 |
int convert_to_int (long double ld); |
| 14 |
}; |
| 15 |
|
| 16 |
class S2 |
| 17 |
{ |
| 18 |
S2 (); |
| 19 |
virtual int convert_to_int (float f); |
| 20 |
virtual int convert_to_int (double d); |
| 21 |
virtual int convert_to_int (long double ld); |
| 22 |
}; |
| 23 |
|
| 24 |
/* { dg-final { cleanup-ada-spec } } */ |