]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/Misc/diag-line-wrapping.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / Misc / diag-line-wrapping.cpp
CommitLineData
223e47cc
LB
1// 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}