summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/function-overload-typo-crash.cpp
blob: 580f27a12afd5c59df1cabc4783cd852b5926e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s

// PR10283
void min(); //expected-note {{'min' declared here}}
void min(int);

template <typename T> void max(T); //expected-note {{'max' declared here}}

void f() {
  fin(); //expected-error {{use of undeclared identifier 'fin'; did you mean 'min'}}
  fax(0); //expected-error {{use of undeclared identifier 'fax'; did you mean 'max'}}
}
OpenPOWER on IntegriCloud