projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MC: Treat ReadOnlyWithRel and ReadOnlyWithRelLocal as ReadOnly for COFF
[oota-llvm.git]
/
test
/
MC
/
COFF
/
const-gv-with-rel-init.ll
diff --git a/test/MC/COFF/const-gv-with-rel-init.ll
b/test/MC/COFF/const-gv-with-rel-init.ll
new file mode 100644
(file)
index 0000000..
7e1b61b
--- /dev/null
+++ b/
test/MC/COFF/const-gv-with-rel-init.ll
@@ -0,0
+1,8
@@
+; RUN: llc -mtriple x86_64-pc-windows-msvc < %s | FileCheck %s
+
+define void @f() {
+ ret void
+}
+
+@ptr = constant void ()* @f, section ".CRT$XLB", align 8
+; CHECK: .section .CRT$XLB,"rd"