Chandler Carruth | 64b0cee | 2011-09-26 16:43:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -fmessage-length 60 %s 2>&1 | FileCheck %s |
| 2 | |
| 3 | struct B { void f(); }; |
| 4 | struct D1 : B {}; |
| 5 | struct D2 : B {}; |
| 6 | struct DD : D1, D2 { |
| 7 | void g() { f(); } |
| 8 | // Ensure that after line-wrapping takes place, we preserve artificial |
| 9 | // newlines introduced to manually format a section of the diagnostic text. |
| 10 | // CHECK: {{.*}}: error: |
| 11 | // CHECK: struct DD -> struct D1 -> struct B |
| 12 | // CHECK: struct DD -> struct D2 -> struct B |
| 13 | } |