[cfe-commits] r142160 - /cfe/trunk/test/Misc/macro-backtrace.c
Chandler Carruth
chandlerc at gmail.com
Sun Oct 16 14:33:07 PDT 2011
Author: chandlerc
Date: Sun Oct 16 16:33:06 2011
New Revision: 142160
URL: http://llvm.org/viewvc/llvm-project?rev=142160&view=rev
Log:
Add a testcase for r142121 based on an idea from Richard Smith. Thanks!
Modified:
cfe/trunk/test/Misc/macro-backtrace.c
Modified: cfe/trunk/test/Misc/macro-backtrace.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/macro-backtrace.c?rev=142160&r1=142159&r2=142160&view=diff
==============================================================================
--- cfe/trunk/test/Misc/macro-backtrace.c (original)
+++ cfe/trunk/test/Misc/macro-backtrace.c Sun Oct 16 16:33:06 2011
@@ -42,4 +42,16 @@
// CHECK-NO-CARETS-NEXT: macro-backtrace.c:6:18: note: expanded from macro: M3
// CHECK-NO-CARETS-NEXT: macro-backtrace.c:5:18: note: expanded from macro: M2
// CHECK-NO-CARETS-NEXT: macro-backtrace.c:4:23: note: expanded from macro: M1
+
+ // Check that the expansion notes respect the same formatting options as
+ // other diagnostics.
+ // RUN: %clang_cc1 -fsyntax-only -fdiagnostics-format vi %s 2>&1 \
+ // RUN: | FileCheck %s -check-prefix=CHECK-NOTE-FORMAT
+ // CHECK-NOTE-FORMAT: macro-backtrace.c +18:7: warning:
+ // CHECK-NOTE-FORMAT: macro-backtrace.c +15:19: note:
+ // CHECK-NOTE-FORMAT: macro-backtrace.c +14:19: note:
+ // CHECK-NOTE-FORMAT: note:
+ // CHECK-NOTE-FORMAT: macro-backtrace.c +6:18: note:
+ // CHECK-NOTE-FORMAT: macro-backtrace.c +5:18: note:
+ // CHECK-NOTE-FORMAT: macro-backtrace.c +4:23: note:
}
More information about the cfe-commits
mailing list