1 // { dg-options "-std=c++98 -pedantic-errors" }
4 a = 24.2, // { dg-error "integral|constant" }
7 d = (int)(4.2 + 3.7), // { dg-error "constant" }
8 e = int(4.2 - 3.7), // { dg-error "constant" }
13 static const int i = (int)4.2;
15 static const int k = static_cast<short>(3.7);