| 1 |
// { dg-do run } |
| 2 |
// GROUPS passed ARM-compliance |
| 3 |
// arm file |
| 4 |
// Message-Id: <[email protected]> |
| 5 |
// From: [email protected] (Nikolay Yatsenko) |
| 6 |
// Subject: g++ bug |
| 7 |
// Date: Wed, 27 Jan 1993 16:39:10 -0500 |
| 8 |
|
| 9 |
extern "C" int printf(const char*,...); |
| 10 |
int count = 0; |
| 11 |
|
| 12 |
struct S { |
| 13 |
int i; |
| 14 |
S(int b) { |
| 15 |
i = b; |
| 16 |
count++; } |
| 17 |
}; |
| 18 |
|
| 19 |
int main(void) |
| 20 |
{ |
| 21 |
double a = 2.0; |
| 22 |
|
| 23 |
S x(int (a)); // { dg-warning "parentheses were disambiguated" } |
| 24 |
if (count > 0) |
| 25 |
{ printf ("FAIL\n"); return 1; } |
| 26 |
else |
| 27 |
printf ("PASS\n"); |
| 28 |
return 0; |
| 29 |
} |