1// RUN: clang-reorder-fields -record-name ::bar::Foo -fields-order y,x %s -- | FileCheck %s
2
3namespace bar {
4
5#define DEFINE_FOO
6
7// This is okay to reorder.
8#ifdef DEFINE_FOO
9struct Foo {
10 int x; // CHECK: {{^ int y;}}
11 int y; // CHECK-NEXT: {{^ int x;}}
12};
13#endif
14
15} // end namespace bar
16

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