diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:46:15 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-12-30 11:46:15 +0000 |
| commit | dd58ef019b700900793a1eb48b52123db01b654e (patch) | |
| tree | fcfbb4df56a744f4ddc6122c50521dd3f1c5e196 /test/Bitcode/DISubprogram-distinct-definitions.ll | |
| parent | 2fe5752e3a7c345cdb59e869278d36af33c13fa4 (diff) | |
Notes
Diffstat (limited to 'test/Bitcode/DISubprogram-distinct-definitions.ll')
| -rw-r--r-- | test/Bitcode/DISubprogram-distinct-definitions.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Bitcode/DISubprogram-distinct-definitions.ll b/test/Bitcode/DISubprogram-distinct-definitions.ll new file mode 100644 index 0000000000000..5c6fb908be908 --- /dev/null +++ b/test/Bitcode/DISubprogram-distinct-definitions.ll @@ -0,0 +1,11 @@ +; RUN: llvm-dis < %s.bc | FileCheck %s +; Check that subprogram definitions are correctly upgraded to 'distinct'. +; Bitcode compiled from r245235 of the 3.7 release branch. + +!named = !{!0} +!0 = distinct !DICompileUnit(language: 12, file: !1, subprograms: !2) +!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") +!2 = !{!3} + +; CHECK: = distinct !DISubprogram({{.*}}, isDefinition: true +!3 = !DISubprogram(name: "foo", isDefinition: true) |
