|
3 | 3 | // of the enclosing functions don't get lost.
|
4 | 4 | //
|
5 | 5 | // Unfortunately, the order that debuginfo gets emitted into LLVM IR becomes a bit hard
|
6 |
| -// to predict once async fns are involved. |
| 6 | +// to predict once async fns are involved, so DAG allows any order. |
7 | 7 | //
|
8 | 8 | // Note that the test does not check async-fns when targeting MSVC because debuginfo for
|
9 | 9 | // those does not follow the enum-fallback encoding yet and thus is incomplete.
|
|
27 | 27 | // CHECK: ![[generic_async_block_NAMESPACE:[0-9]+]] = !DINamespace(name: "generic_async_block"
|
28 | 28 |
|
29 | 29 | // function_containing_closure<u32>()
|
30 |
| -// NONMSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "{closure_env#0}<u32>", scope: ![[function_containing_closure_NAMESPACE]] |
31 |
| -// MSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "closure_env$0<u32>", scope: ![[function_containing_closure_NAMESPACE]] |
| 30 | +// NONMSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "{closure_env#0}<u32>", scope: ![[function_containing_closure_NAMESPACE]] |
| 31 | +// MSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "closure_env$0<u32>", scope: ![[function_containing_closure_NAMESPACE]] |
32 | 32 |
|
33 | 33 | // generic_async_function<Foo>()
|
34 |
| -// NONMSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_fn_env#0}<debuginfo_generic_closure_env_names::Foo>", scope: ![[generic_async_function_NAMESPACE]] |
| 34 | +// NONMSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_fn_env#0}<debuginfo_generic_closure_env_names::Foo>", scope: ![[generic_async_function_NAMESPACE]] |
35 | 35 |
|
36 | 36 | // generic_async_function<u32>()
|
37 |
| -// NONMSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_fn_env#0}<u32>", scope: ![[generic_async_function_NAMESPACE]] |
| 37 | +// NONMSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_fn_env#0}<u32>", scope: ![[generic_async_function_NAMESPACE]] |
38 | 38 |
|
39 | 39 | // generic_async_block<Foo>()
|
40 |
| -// NONMSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_block_env#0}<debuginfo_generic_closure_env_names::Foo>", scope: ![[generic_async_block_NAMESPACE]] |
| 40 | +// NONMSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_block_env#0}<debuginfo_generic_closure_env_names::Foo>", scope: ![[generic_async_block_NAMESPACE]] |
41 | 41 |
|
42 | 42 | // generic_async_block<u32>()
|
43 |
| -// NONMSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_block_env#0}<u32>", scope: ![[generic_async_block_NAMESPACE]] |
| 43 | +// NONMSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "{async_block_env#0}<u32>", scope: ![[generic_async_block_NAMESPACE]] |
44 | 44 |
|
45 | 45 | // function_containing_closure<Foo>()
|
46 |
| -// NONMSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "{closure_env#0}<debuginfo_generic_closure_env_names::Foo>", scope: ![[function_containing_closure_NAMESPACE]] |
47 |
| -// MSVC: !DICompositeType(tag: DW_TAG_structure_type, name: "closure_env$0<debuginfo_generic_closure_env_names::Foo>", scope: ![[function_containing_closure_NAMESPACE]] |
| 46 | +// NONMSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "{closure_env#0}<debuginfo_generic_closure_env_names::Foo>", scope: ![[function_containing_closure_NAMESPACE]] |
| 47 | +// MSVC-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "closure_env$0<debuginfo_generic_closure_env_names::Foo>", scope: ![[function_containing_closure_NAMESPACE]] |
48 | 48 |
|
49 | 49 |
|
50 | 50 | #![crate_type = "lib"]
|
|
0 commit comments