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