-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DebugInfo] Artificial var debug info for common block should not be …
…generated (#1228)
- Loading branch information
1 parent
bf41153
commit 65d1e98
Showing
2 changed files
with
19 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!RUN: %flang -g -S -emit-llvm %s -o - | FileCheck %s | ||
|
||
!CHECK: distinct !DIGlobalVariable(name: "cvar1", scope: [[CBLOCK:![0-9]+]] | ||
!CHECK: [[CBLOCK]] = distinct !DICommonBlock(scope: !3, declaration: null, name: "cname") | ||
!CHECK-NOT: distinct !DIGlobalVariable(name: "cname" | ||
!CHECK: distinct !DIGlobalVariable(name: "cvar2", scope: [[CBLOCK]] | ||
|
||
program main | ||
integer :: cvar1, cvar2 | ||
common /cname/ cvar1, cvar2 | ||
cvar1 = 1 | ||
cvar2 = 2 | ||
print *, cvar1 | ||
print *, cvar2 | ||
end program main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters