| 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 | |
| 5 | class Foo { |
| 6 | int x GUARDED_BY(x); // CHECK: {{^ int y;}} |
| 7 | int y; // CHECK-NEXT: {{^ int x GUARDED_BY\(x\);}} |
| 8 | }; |
| 9 | |
| 10 |
