diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-16 21:33:06 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-16 21:33:06 +0000 |
commit | 4c3fd511a6a83a0d729a40d659f1fa6bedbebd07 (patch) | |
tree | 2a38712e8cd7bc310c62650f05a1d8208f3eff76 /test/Misc | |
parent | 1e12c59e8f9bb76c23628c4e0d0a1dfced0b1fa0 (diff) |
Add a testcase for r142121 based on an idea from Richard Smith. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Misc')
-rw-r--r-- | test/Misc/macro-backtrace.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Misc/macro-backtrace.c b/test/Misc/macro-backtrace.c index cdcb534c19..71244dc69b 100644 --- a/test/Misc/macro-backtrace.c +++ b/test/Misc/macro-backtrace.c @@ -42,4 +42,16 @@ void f(int *ip, float *fp) { // 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: } |