8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/scast1.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

8 lines
109 B
C

class A {};
class C {};
int main() {
A* a = 0;
C* c = static_cast<C*>(a); // ERROR - bad static cast
}