[cfe-commits] r142119 - /cfe/trunk/test/Misc/macro-backtrace.c
Chandler Carruth
chandlerc at gmail.com
Sun Oct 16 00:20:23 PDT 2011
Author: chandlerc
Date: Sun Oct 16 02:20:23 2011
New Revision: 142119
URL: http://llvm.org/viewvc/llvm-project?rev=142119&view=rev
Log:
Add a prefix to the existing test to prepare for more tests of other
backtrace behavior.
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=142119&r1=142118&r2=142119&view=diff
==============================================================================
--- cfe/trunk/test/Misc/macro-backtrace.c (original)
+++ cfe/trunk/test/Misc/macro-backtrace.c Sun Oct 16 02:20:23 2011
@@ -16,18 +16,19 @@
void f(int *ip, float *fp) {
if (M12(ip, fp)) { }
- // RUN: %clang_cc1 -fsyntax-only -fmacro-backtrace-limit 5 %s 2>&1 | FileCheck %s
- // CHECK: macro-backtrace.c:18:7: warning: comparison of distinct pointer types ('int *' and 'float *')
- // CHECK: if (M12(ip, fp)) { }
- // CHECK: macro-backtrace.c:15:19: note: expanded from:
- // CHECK: #define M12(A, B) M11(A, B)
- // CHECK: macro-backtrace.c:14:19: note: expanded from:
- // CHECK: #define M11(A, B) M10(A, B)
- // CHECK: note: (skipping 7 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
- // CHECK: macro-backtrace.c:6:18: note: expanded from:
- // CHECK: #define M3(A, B) M2(A, B)
- // CHECK: macro-backtrace.c:5:18: note: expanded from:
- // CHECK: #define M2(A, B) M1(A, B)
- // CHECK: macro-backtrace.c:4:23: note: expanded from:
- // CHECK: #define M1(A, B) ((A) < (B))
+ // RUN: %clang_cc1 -fsyntax-only -fmacro-backtrace-limit 5 %s 2>&1 \
+ // RUN: | FileCheck %s -check-prefix=CHECK-LIMIT
+ // CHECK-LIMIT: macro-backtrace.c:18:7: warning: comparison of distinct pointer types ('int *' and 'float *')
+ // CHECK-LIMIT: if (M12(ip, fp)) { }
+ // CHECK-LIMIT: macro-backtrace.c:15:19: note: expanded from:
+ // CHECK-LIMIT: #define M12(A, B) M11(A, B)
+ // CHECK-LIMIT: macro-backtrace.c:14:19: note: expanded from:
+ // CHECK-LIMIT: #define M11(A, B) M10(A, B)
+ // CHECK-LIMIT: note: (skipping 7 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
+ // CHECK-LIMIT: macro-backtrace.c:6:18: note: expanded from:
+ // CHECK-LIMIT: #define M3(A, B) M2(A, B)
+ // CHECK-LIMIT: macro-backtrace.c:5:18: note: expanded from:
+ // CHECK-LIMIT: #define M2(A, B) M1(A, B)
+ // CHECK-LIMIT: macro-backtrace.c:4:23: note: expanded from:
+ // CHECK-LIMIT: #define M1(A, B) ((A) < (B))
}
More information about the cfe-commits
mailing list