Make test more lenient for custom clang version strings
[llvm-project.git] / clang-tools-extra / test / clang-reorder-fields / ClassDifferentFieldsAccesses.cpp
blobdd0a555a815a3dc77e3f39a2bb5a0aeb7dd7aab8
1 // RUN: clang-reorder-fields -record-name Foo -fields-order z,y,x %s -- | FileCheck %s
3 // The order of fields should not change.
4 class Foo {
5 public:
6 int x; // CHECK: {{^ int x;}}
8 private:
9 int y; // CHECK: {{^ int y;}}
10 int z; // CHECK-NEXT: {{^ int z;}}
13 int main() {
14 Foo foo;
15 return 0;