blob: 830aa134083183c3b55885b117d7b97b98c4cdbf [file] [log] [blame]
Chandler Carruth64b0cee2011-09-26 16:43:25 +00001// RUN: %clang_cc1 -fsyntax-only -fmessage-length 60 %s 2>&1 | FileCheck %s
2
3struct B { void f(); };
4struct D1 : B {};
5struct D2 : B {};
6struct 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}