xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/function-overloaded-redecl.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 typedef const int cInt;
4 
5 void f (int);
6 void f (const int);  // redecl
7 
f(int)8 void f (int) {  }    // expected-note {{previous definition is here}}
f(cInt)9 void f (cInt) { }    // expected-error {{redefinition of 'f'}}
10 
11