diff options
Diffstat (limited to 'llvm/test/Assembler/invalid-mdlocation-overflow-column.ll')
| -rw-r--r-- | llvm/test/Assembler/invalid-mdlocation-overflow-column.ll | 9 |
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) |

