1 // RUN: clang-reorder-fields -record-name Foo -fields-order z,w,y,x %s -- | FileCheck %s
4 const int* x
; // CHECK: {{^ double z;}}
5 int y
; // CHECK-NEXT: {{^ int w;}}
6 double z
; // CHECK-NEXT: {{^ int y;}}
7 int w
; // CHECK-NEXT: {{^ const int\* x}}
12 struct Foo foo
= { &x
, 0, 1.29, 17 }; // CHECK: {{^ struct Foo foo = { 1.29, 17, 0, &x };}}