summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/cast1.C
blob: 964dd698d30943f0bcdbda424652d774b0cd6254 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/28523

class A {};
class B : public A {};

int main()
{
  throw (A) B();
  return 0;
}