summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-mdlocation-overflow-column.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-13 21:10:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-13 21:10:44 +0000
commit6a4848324bc8ed9789e3d9d99e8715b1667547d3 (patch)
tree0d7be7c5469f3d78cc75b980930e1f0c72c2d674 /llvm/test/Assembler/invalid-mdlocation-overflow-column.ll
parenta4f2925bd10233f143ef92a4df18a5f2457df0dd (diff)
downloadbcm5719-llvm-6a4848324bc8ed9789e3d9d99e8715b1667547d3.tar.gz
bcm5719-llvm-6a4848324bc8ed9789e3d9d99e8715b1667547d3.zip
AsmParser/Bitcode: Add support for MDLocation
This adds assembly and bitcode support for `MDLocation`. The assembly side is rather big, since this is the first `MDNode` subclass (that isn't `MDTuple`). Part of PR21433. (If you're wondering where the mountains of testcase updates are, we don't need them until I update `DILocation` and `DebugLoc` to actually use this class.) llvm-svn: 225830
Diffstat (limited to 'llvm/test/Assembler/invalid-mdlocation-overflow-column.ll')
-rw-r--r--llvm/test/Assembler/invalid-mdlocation-overflow-column.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-mdlocation-overflow-column.ll b/llvm/test/Assembler/invalid-mdlocation-overflow-column.ll
new file mode 100644
index 00000000000..d1dbb27173d
--- /dev/null
+++ b/llvm/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: 255, scope: !0)
+
+; CHECK: <stdin>:[[@LINE+1]]:26: error: value for 'column' too large, limit is 255
+!2 = !MDLocation(column: 256, scope: !0)
OpenPOWER on IntegriCloud