aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-mdlocation-overflow-column.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-mdlocation-overflow-column.ll')
-rw-r--r--test/Assembler/invalid-mdlocation-overflow-column.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Assembler/invalid-mdlocation-overflow-column.ll b/test/Assembler/invalid-mdlocation-overflow-column.ll
new file mode 100644
index 0000000..92ea661
--- /dev/null
+++ b/test/Assembler/invalid-mdlocation-overflow-column.ll
@@ -0,0 +1,9 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+!0 = !{}
+
+; CHECK-NOT: error
+!1 = !MDLocation(column: 65535, scope: !0)
+
+; CHECK: <stdin>:[[@LINE+1]]:26: error: value for 'column' too large, limit is 65535
+!2 = !MDLocation(column: 65536, scope: !0)