Mercurial > hg > CbC > CbC_llvm
annotate 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 |
rev | line source |
---|---|
150 | 1 // RUN: clang-reorder-fields -record-name ::Foo -fields-order y,x %s -- | FileCheck %s |
2 | |
3 struct Foo { | |
4 int x; // CHECK: {{^ double y;}} | |
5 double y; // CHECK-NEXT: {{^ int x;}} | |
6 }; | |
7 | |
8 namespace bar { | |
9 struct Foo { | |
10 int x; // CHECK: {{^ int x;}} | |
11 double y; // CHECK-NEXT: {{^ double y;}} | |
12 }; | |
13 } // end namespace bar | |
14 | |
15 int main() { | |
16 bar::Foo foo = { 1, 1.7 }; // CHECK: {{^ bar::Foo foo = { 1, 1.7 };}} | |
17 return 0; | |
18 } |