summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/scast1.C
blob: 9a905d028dfacb3f6da03b2dbe96e6bdc52fbebb (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
class A {};
class C {};

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