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

// PR10283
void min();
void min(int);

template <typename T> void max(T);

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