forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/release/18.x' into ldc-release…
…/18.x
- Loading branch information
Showing
46 changed files
with
621 additions
and
701 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
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
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
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
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
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,20 @@ | ||
// This file contain tests to check if override and final are dumped in the | ||
// correct positions. | ||
|
||
// RUN: %clang_cc1 -ast-print -x c++ %s -o - | FileCheck %s | ||
|
||
// CHECK: class A { | ||
class A { | ||
// CHECK-NEXT: virtual void f(); | ||
virtual void f(); | ||
|
||
// CHECK-NEXT: virtual void g() final; | ||
virtual void g() final; | ||
} AA; | ||
|
||
// CHECK: class B : public A { | ||
class B : public A { | ||
// CHECK-NEXT: virtual void f() override { | ||
virtual void f() override { | ||
}; | ||
} B; |
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
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
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
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
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
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
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,41 @@ | ||
# REQUIRES: x86 | ||
# RUN: split-file %s %t.dir | ||
|
||
# RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/lib.s -filetype=obj -o %t.dir/lib.obj | ||
# RUN: lld-link -out:%t.dir/lib.dll -dll -entry:DllMainCRTStartup %t.dir/lib.obj -lldmingw -implib:%t.dir/lib.lib | ||
|
||
# RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/main.s -filetype=obj -o %t.dir/main.obj | ||
# RUN: lld-link -lldmingw -out:%t.dir/main.exe -entry:main %t.dir/main.obj %t.dir/lib.lib -opt:ref -debug:dwarf | ||
|
||
#--- main.s | ||
.global main | ||
.section .text$main,"xr",one_only,main | ||
main: | ||
ret | ||
|
||
.global other | ||
.section .text$other,"xr",one_only,other | ||
other: | ||
movq .refptr.variable(%rip), %rax | ||
movl (%rax), %eax | ||
ret | ||
|
||
.section .rdata$.refptr.variable,"dr",discard,.refptr.variable | ||
.global .refptr.variable | ||
.refptr.variable: | ||
.quad variable | ||
|
||
.section .debug_info | ||
.long 1 | ||
.quad variable | ||
.long 2 | ||
|
||
#--- lib.s | ||
.global variable | ||
.global DllMainCRTStartup | ||
.text | ||
DllMainCRTStartup: | ||
ret | ||
.data | ||
variable: | ||
.long 42 |
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
Oops, something went wrong.