xref: /llvm-project/llvm/test/tools/llvm-readobj/COFF/codeview-merging-cycle.test (revision dbf520f617440d62ca46f64cdc41159945911902)
1*dbf520f6SGeorgii Rymar; RUN: not llvm-readobj --codeview-merged-types %S/Inputs/codeview-cycle.obj 2>&1 | FileCheck %s
2*dbf520f6SGeorgii Rymar
3*dbf520f6SGeorgii Rymar; CHECK: error{{.*}} Input type graph contains cycles
4*dbf520f6SGeorgii Rymar
5*dbf520f6SGeorgii Rymar; To reproduce codeview-cycle.obj:
6*dbf520f6SGeorgii Rymar; $ cat codeview-cycle.asm
7*dbf520f6SGeorgii Rymar;       .model  flat, C
8*dbf520f6SGeorgii Rymar;       .code
9*dbf520f6SGeorgii Rymar; pfoo_list TYPEDEF PTR foo_list
10*dbf520f6SGeorgii Rymar; foo_list STRUCT
11*dbf520f6SGeorgii Rymar;       next pfoo_list ?
12*dbf520f6SGeorgii Rymar;       data dd ?
13*dbf520f6SGeorgii Rymar; foo_list ENDS
14*dbf520f6SGeorgii Rymar;       public  foo
15*dbf520f6SGeorgii Rymar; foo proc dst:ptr foo_list
16*dbf520f6SGeorgii Rymar;       ret
17*dbf520f6SGeorgii Rymar; foo   endp
18*dbf520f6SGeorgii Rymar;       end
19*dbf520f6SGeorgii Rymar; $ ml -c -Zi codeview-cycle.asm
20