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
@@ -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"