Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / over / over.over / p4.cpp
blob27d070eff209408b9b8d9a23c2845bcbc6f386b4
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template<typename T> T f0(T); // expected-note{{candidate function}}
4 int f0(int); // expected-note{{candidate function}}
6 void test_f0() {
7 int (*fp0)(int) = f0;
8 int (*fp1)(int) = &f0;
9 float (*fp2)(float) = &f0;
12 namespace N {
13 int f0(int); // expected-note{{candidate function}}
16 void test_f0_2() {
17 using namespace N;
18 int (*fp0)(int) = f0; // expected-error{{address of overloaded function 'f0' is ambiguous}}
19 float (*fp1)(float) = f0;