brintos

brintos / llvm-project-archived public Read only

0
0
Text · 271 B · aedec95 Raw
10 lines · cpp
1// RUN: clang-reorder-fields -record-name Foo -fields-order y,x %s -- | FileCheck %s2 3#define GUARDED_BY(x) __attribute__((guarded_by(x)))4 5class Foo {6  int x GUARDED_BY(x); // CHECK: {{^  int y;}}7  int y;               // CHECK-NEXT: {{^  int x GUARDED_BY\(x\);}}8};9 10