2018-01-10 07:31:48 +08:00
|
|
|
# RUN: not llvm-mc -triple x86_64-unknown-unknown -dwarf-version 5 -filetype=asm %s -o /dev/null 2>&1 | FileCheck %s
|
2018-02-23 05:03:33 +08:00
|
|
|
# RUN: not llvm-mc -triple x86_64-unknown-unknown -dwarf-version 5 -filetype=obj %s -o /dev/null 2>&1 | FileCheck %s
|
2018-01-10 07:31:48 +08:00
|
|
|
|
|
|
|
# This is syntactically legal, looks like no checksum provided.
|
|
|
|
# CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
|
|
|
|
.file 1 "dir1/foo" "00112233445566778899aabbccddeeff"
|
|
|
|
|
|
|
|
# Missing md5 keyword.
|
|
|
|
# CHECK: [[@LINE+1]]:{{[0-9]+}}: error: unexpected token in '.file' directive
|
2018-04-11 23:14:05 +08:00
|
|
|
.file 2 "dir1" "foo" 0x00112233445566778899aabbccddeeff
|
2018-01-10 07:31:48 +08:00
|
|
|
|
2018-04-11 23:14:05 +08:00
|
|
|
# Bad syntax.
|
|
|
|
# CHECK: [[@LINE+1]]:{{[0-9]+}}: error: unknown token in expression
|
2018-01-10 07:31:48 +08:00
|
|
|
.file 3 "dir2" "bar" md5 "ff"
|
|
|
|
|
2018-04-11 23:14:05 +08:00
|
|
|
# No hex prefix.
|
|
|
|
# CHECK: [[@LINE+1]]:{{[0-9]+}}: error: unknown token in expression
|
2018-01-10 07:31:48 +08:00
|
|
|
.file 4 "dir3" "foo" md5 ffeeddccbbaa99887766554433221100
|
|
|
|
|
|
|
|
# Non-DWARF .file syntax with checksum.
|
|
|
|
# CHECK: [[@LINE+1]]:{{[0-9]+}}: error: MD5 checksum specified, but no file number
|
2018-04-11 23:14:05 +08:00
|
|
|
.file "baz" md5 0xffeeddccbbaa99887766554433221100
|
2018-02-23 05:03:33 +08:00
|
|
|
|
|
|
|
# Inconsistent use of MD5 option. Note: .file 1 did not supply one.
|
2018-06-14 21:38:20 +08:00
|
|
|
# CHECK: [[@LINE+1]]:{{[0-9]+}}: warning: inconsistent use of MD5 checksums
|
2018-04-11 23:14:05 +08:00
|
|
|
.file 5 "bax" md5 0xffeeddccbbaa99887766554433221100
|