Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Misc / diag-func-call-ranges.cpp
blobecdc03b7ef51ca45d61867388da1360b83392d6a
1 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s --strict-whitespace
3 // CHECK: error: no matching function for call to 'func'
5 // CHECK: :{[[@LINE+1]]:12-[[@LINE+1]]:18}: note: {{.*}} requires single argument
6 void func( int aa ) {}
7 // CHECK: :{[[@LINE+1]]:12-[[@LINE+3]]:18}: note: {{.*}} requires 3 arguments
8 void func( int aa,
9 int bb,
10 int cc) {}
12 void arity_mismatch() {
13 func(2, 4);