You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
322 B
17 lines
322 B
// RUN: clang-reorder-fields -record-name Foo -fields-order z,y,x %s -- | FileCheck %s
|
|
|
|
// The order of fields should not change.
|
|
class Foo {
|
|
public:
|
|
int x; // CHECK: {{^ int x;}}
|
|
|
|
private:
|
|
int y; // CHECK: {{^ int y;}}
|
|
int z; // CHECK-NEXT: {{^ int z;}}
|
|
};
|
|
|
|
int main() {
|
|
Foo foo;
|
|
return 0;
|
|
}
|