Mercurial > hg > CbC > CbC_llvm
view clang-tools-extra/test/clang-reorder-fields/CStructAmbiguousName.cpp @ 265:31d058e83c98 current
fix llvm again
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:49 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: clang-reorder-fields -record-name ::Foo -fields-order y,x %s -- | FileCheck %s struct Foo { int x; // CHECK: {{^ double y;}} double y; // CHECK-NEXT: {{^ int x;}} }; namespace bar { struct Foo { int x; // CHECK: {{^ int x;}} double y; // CHECK-NEXT: {{^ double y;}} }; } // end namespace bar int main() { bar::Foo foo = { 1, 1.7 }; // CHECK: {{^ bar::Foo foo = { 1, 1.7 };}} return 0; }