1 // RUN: clang-reorder-fields -record-name bar::Derived -fields-order z,y %s -- | FileCheck %s
6 Base(int nx
, int np
) : x(nx
), p(np
) {}
12 class Derived
: public Base
{
21 Derived::Derived(long ny
) :
23 y(ny
), // CHECK: {{^ z\(static_cast<char>\(ny\)\),}}
24 z(static_cast<char>(ny
)) // CHECK-NEXT: {{^ y\(ny\)}}
27 Derived::Derived(char nz
) :
29 y(nz
), // CHECK: {{^ z\(x\),}}
30 z(x
) // CHECK-NEXT: {{^ y\(nz\)}}