Warn when unique objects might be duplicated in shared libraries (#117622)
[llvm-project.git] / llvm / test / MC / Hexagon / directive-attribute-err.s
blob52b145b1ff28a1907edbf6739fde7b10419e9867
1 /// attribute parsing error cases.
3 // RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 \
4 // RUN: | FileCheck %s
6 .attribute Tag_unknown_name, 0
7 // CHECK: [[#@LINE-1]]:14: error: attribute name not recognized: Tag_unknown_name
8 // CHECK-NEXT: .attribute Tag_unknown_name
10 .attribute [non_constant_expression], 0
11 // CHECK: [[#@LINE-1]]:14: error: expected numeric constant
12 // CHECK-NEXT: .attribute [non_constant_expression], 0
14 .attribute 42, "forty two"
15 // CHECK: [[#@LINE-1]]:18: error: expected numeric constant
16 // CHECK-NEXT: .attribute 42, "forty two"
18 .attribute Tag_arch, "v75"
19 // CHECK: [[#@LINE-1]]:24: error: expected numeric constant
20 // CHECK-NEXT: .attribute Tag_arch, "v75"
22 .attribute 0
23 // CHECK: :[[#@LINE-1]]:15: error: expected comma
24 // CHECK-NEXT: .attribute 0