1 // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
7 // CHECK: casting_away_constness
8 void casting_away_constness(const B
&b
, const C
&c
, const B
*bp
, const C
*cp
) {
9 // CHECK: DerivedToBase (B)
10 // CHECK: DeclRefExpr {{.*}} ParmVar {{.*}} 'c'
12 // CHECK: BaseToDerived (B)
13 // CHECK: DeclRefExpr {{.*}} ParmVar {{.*}} 'b'
15 // CHECK: DerivedToBase (B)
16 // CHECK: DeclRefExpr {{.*}} ParmVar {{.*}} 'cp'
18 // CHECK: BaseToDerived (B)
19 // CHECK: DeclRefExpr {{.*}} ParmVar {{.*}} 'bp'