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