[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang-tools-extra / test / clang-reorder-fields / CStructAmbiguousName.cpp
blobe1e6645511d8c96de5830339730dc75354eddb18
1 // RUN: clang-reorder-fields -record-name ::Foo -fields-order y,x %s -- | FileCheck %s
3 struct Foo {
4 int x; // CHECK: {{^ double y;}}
5 double y; // CHECK-NEXT: {{^ int x;}}
6 };
8 namespace bar {
9 struct Foo {
10 int x; // CHECK: {{^ int x;}}
11 double y; // CHECK-NEXT: {{^ double y;}}
13 } // end namespace bar
15 int main() {
16 bar::Foo foo = { 1, 1.7 }; // CHECK: {{^ bar::Foo foo = { 1, 1.7 };}}
17 return 0;