repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make test more lenient for custom clang version strings
[llvm-project.git]
/
clang-tools-extra
/
test
/
clang-reorder-fields
/
ClassDifferentFieldsAccesses.cpp
blob
dd0a555a815a3dc77e3f39a2bb5a0aeb7dd7aab8
1
// RUN: clang-reorder-fields -record-name Foo -fields-order z,y,x %s -- | FileCheck %s
2
3
// The order of fields should not change.
4
class
Foo
{
5
public
:
6
int
x
;
// CHECK: {{^ int x;}}
7
8
private
:
9
int
y
;
// CHECK: {{^ int y;}}
10
int
z
;
// CHECK-NEXT: {{^ int z;}}
11
};
12
13
int
main
() {
14
Foo foo
;
15
return
0
;
16
}