aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/test/clang-reorder-fields/MultipleFieldDeclsInStatement.cpp
blob: 437e7b91e27a32299fa7d4802f955ff1e50bd7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang-reorder-fields -record-name ::bar::Foo -fields-order z,y,x %s -- | FileCheck %s

namespace bar {

// The order of fields should not change.
struct Foo {
  int x, y; // CHECK: {{^  int x, y;}}
  double z; // CHECK-NEXT: {{^  double z;}}
};

} // end namespace bar