1// RUN: clang-reorder-fields -record-name ::bar::Foo -fields-order z,y,x %s -- | FileCheck %s
2
3namespace bar {
4
5#define FIELDS_DECL int x; int y; // CHECK: {{^#define FIELDS_DECL int x; int y;}}
6
7// The order of fields should not change.
8struct Foo {
9 FIELDS_DECL // CHECK: {{^ FIELDS_DECL}}
10 int z; // CHECK-NEXT: {{^ int z;}}
11};
12
13} // end namespace bar
14

source code of clang-tools-extra/test/clang-reorder-fields/MacroExpandsToMultipleFields.cpp