1 // RUN: clang-reorder-fields -record-name Foo -fields-order s1,x,z,s2 %s -- | FileCheck %s
8 int x
; // CHECK: {{^ const char \*s1;}}
9 const char *s1
; // CHECK-NEXT: {{^ int x;}}
10 const char *s2
; // CHECK-NEXT: {{^ double z;}}
11 double z
; // CHECK-NEXT: {{^ const char \*s2;}}
15 x(12), // CHECK: {{^ s1\("abc"\),}}
16 s1("abc"), // CHECK-NEXT: {{^ x\(12\),}}
17 s2("def"), // CHECK-NEXT: {{^ z\(3.14\),}}
18 z(3.14) // CHECK-NEXT: {{^ s2\("def"\)}}