brintos

brintos / llvm-project-archived public Read only

0
0
Text · 277 B · 437e7b9 Raw
12 lines · cpp
1// RUN: clang-reorder-fields -record-name ::bar::Foo -fields-order z,y,x %s -- | FileCheck %s2 3namespace bar {4 5// The order of fields should not change.6struct Foo {7  int x, y; // CHECK: {{^  int x, y;}}8  double z; // CHECK-NEXT: {{^  double z;}}9};10 11} // end namespace bar12