xref: /aosp_15_r20/external/clang/test/CXX/basic/basic.link/p9.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s
2*67e74705SXin Li 
3*67e74705SXin Li // FIXME: This test is woefully incomplete.
4*67e74705SXin Li namespace N { } // expected-note{{here}}
5*67e74705SXin Li 
6*67e74705SXin Li // First bullet: two names with external linkage that refer to
7*67e74705SXin Li // different kinds of entities.
f()8*67e74705SXin Li void f() {
9*67e74705SXin Li   int N(); // expected-error{{redefinition}} expected-warning{{interpreted as a function declaration}} expected-note {{replace parentheses with an initializer}}
10*67e74705SXin Li }
11