diff options
Diffstat (limited to 'test/Assembler/invalid-mdlocation-overflow-column.ll')
-rw-r--r-- | test/Assembler/invalid-mdlocation-overflow-column.ll | 9 |
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 000000000000..d1dbb27173dc --- /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: 255, scope: !0) + +; CHECK: <stdin>:[[@LINE+1]]:26: error: value for 'column' too large, limit is 255 +!2 = !MDLocation(column: 256, scope: !0) |