blob: 59492ca952c6b419836be64f029c79ffa6755330 [file] [log] [blame]
// { dg-do run }
// GROUPS passed ARM-compliance
// arm file
// Message-Id: <199301272139.AA25489@world.std.com>
// From: kol@world.std.com (Nikolay Yatsenko)
// Subject: g++ bug
// Date: Wed, 27 Jan 1993 16:39:10 -0500
extern "C" int printf(const char*,...);
int count = 0;
struct S {
int i;
S(int b) {
i = b;
count++; }
};
int main(void)
{
double a = 2.0;
S x(int (a)); // { dg-warning "parentheses were disambiguated" }
if (count > 0)
{ printf ("FAIL\n"); return 1; }
else
printf ("PASS\n");
return 0;
}