gcc/testsuite/g++.old-deja/g++.mike/p5793.C
raw| 1 | // { dg-do assemble } |
| 2 | // prms-id: 5793 |
| 3 | |
| 4 | class temp_string { |
| 5 | public: |
| 6 | temp_string (const int); |
| 7 | temp_string (const char * const); |
| 8 | }; |
| 9 | |
| 10 | class Range { |
| 11 | public: |
| 12 | Range ( const int); |
| 13 | operator int () const ; |
| 14 | }; |
| 15 | |
| 16 | int operator == (const int, temp_string ); |
| 17 | |
| 18 | void CheckArrayConstraints(void) { |
| 19 | if (Range(0L) == 0L) |
| 20 | ; |
| 21 | } |