1// RUN: clang-reorder-fields -record-name Foo -fields-order y,x %s -- | FileCheck %s
2
3#define GUARDED_BY(x) __attribute__((guarded_by(x)))
4
5class Foo {
6 int x GUARDED_BY(x); // CHECK: {{^ int y;}}
7 int y; // CHECK-NEXT: {{^ int x GUARDED_BY\(x\);}}
8};
9
10

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