summaryrefslogtreecommitdiff
path: root/test/COFF/pdb-debug-f.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/COFF/pdb-debug-f.s')
-rw-r--r--test/COFF/pdb-debug-f.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/COFF/pdb-debug-f.s b/test/COFF/pdb-debug-f.s
new file mode 100644
index 000000000000..624c1192914a
--- /dev/null
+++ b/test/COFF/pdb-debug-f.s
@@ -0,0 +1,28 @@
+# REQUIRES: x86
+# RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s
+# RUN: lld-link /subsystem:console /debug /nodefaultlib /entry:foo /out:%t.exe /pdb:%t.pdb %t.obj
+# RUN: llvm-pdbutil dump -fpo %t.pdb | FileCheck %s
+
+# CHECK: Old FPO Data
+# CHECK-NEXT: ============================================================
+# CHECK-NEXT: RVA | Code | Locals | Params | Prolog | Saved Regs | Use BP | Has SEH | Frame Type
+# CHECK-NEXT: 00001002 | 1 | 2 | 3 | 4 | 0 | false | false | FPO
+
+.text
+_foo:
+ret
+
+.global _foo
+
+.section .debug$F,"dr"
+ .long _foo@IMGREL+2
+ .long 1 # cbProc
+ .long 2 # cdwLocals;
+ .short 3 # cdwParams;
+ .short 4 # flags
+ # cbProlog : 8;
+ # cbRegs : 3;
+ # fHasSEH : 1;
+ # fUseBP : 1;
+ # reserved : 1;
+ # cbFrame : 2; \ No newline at end of file