• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -triple=x86_64-pc-win32 < %s -o /dev/null 2>&1 | FileCheck %s
2
3	.text
4	.global baz
5baz:
6.Lfunc_begin0:
7	.cv_file 1 "t.cpp"
8	.cv_func_id 0
9	.cv_loc 0 1 1 1
10	pushq %rbp
11	movq %rsp, %rbp
12	.cv_loc 0 1 2 1
13
14	.data # Switching sections raises an error.
15
16	incl    x(%rip)
17	.cv_loc 0 1 3 1
18# CHECK: error: all .cv_loc directives for a function must be in the same section
19	popq %rbp
20	retq
21.Lfunc_end0:
22
23	.section	.debug$S,"dr"
24	.cv_linetable 0 .Lfunc_begin0 .Lfunc_end0
25	.short 2   # Record length
26	.short 2   # Record kind: S_INLINESITE_END
27