Make test more lenient for custom clang version strings
[llvm-project.git] / clang-tools-extra / test / clang-reorder-fields / FieldAnnotationsInMacros.cpp
blobaedec9556aa55a42fe68262613bc073616cf1106
1 // RUN: clang-reorder-fields -record-name Foo -fields-order y,x %s -- | FileCheck %s
3 #define GUARDED_BY(x) __attribute__((guarded_by(x)))
5 class Foo {
6 int x GUARDED_BY(x); // CHECK: {{^ int y;}}
7 int y; // CHECK-NEXT: {{^ int x GUARDED_BY\(x\);}}
8 };