brintos

brintos / llvm-project-archived public Read only

0
0
Text · 471 B · ecdc03b Raw
15 lines · cpp
1// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-print-source-range-info %s 2>&1 | FileCheck %s --strict-whitespace2 3// CHECK: error: no matching function for call to 'func'4 5// CHECK:      :{[[@LINE+1]]:12-[[@LINE+1]]:18}: note: {{.*}} requires single argument6void func( int aa ) {}7// CHECK:      :{[[@LINE+1]]:12-[[@LINE+3]]:18}: note: {{.*}} requires 3 arguments8void func( int aa,9           int bb,10           int cc) {}11 12void arity_mismatch() {13  func(2, 4);14}15