summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/static_cast2.C
blob: 7b5d46dedf87c518a256bda043c32211db921332 (plain)
1
2
3
4
5
6
7
struct B {};

int main () {
  B a;
  (1 ? static_cast<B&>(a) :
       *static_cast<B*>(&a));
}