[llvm] r266134 - [DebugInfo] Add error message to test.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 14:44:16 PDT 2016


Author: davide
Date: Tue Apr 12 16:44:16 2016
New Revision: 266134

URL: http://llvm.org/viewvc/llvm-project?rev=266134&view=rev
Log:
[DebugInfo] Add error message to test.

Suggested by Rafael as post-commit review (r266102).

Modified:
    llvm/trunk/test/Verifier/disubprogram-nocu.ll

Modified: llvm/trunk/test/Verifier/disubprogram-nocu.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Verifier/disubprogram-nocu.ll?rev=266134&r1=266133&r2=266134&view=diff
==============================================================================
--- llvm/trunk/test/Verifier/disubprogram-nocu.ll (original)
+++ llvm/trunk/test/Verifier/disubprogram-nocu.ll Tue Apr 12 16:44:16 2016
@@ -1,5 +1,8 @@
 ; Reject if DISubprogram does not belong to a DICompileUnit.
-; RUN: not llvm-as %s
+; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
+
+; CHECK:  assembly parsed, but does not verify as correct!
+; CHECK: subprogram not found in any compile unit
 
 @_ZZNK4llvm6object15MachOObjectFile21getRelocationTypeNameENS0_11DataRefImplERNS_15SmallVectorImplIcEEE5Table = external unnamed_addr constant [6 x i8*], align 16
 




More information about the llvm-commits mailing list