xref: /minix3/external/bsd/llvm/dist/clang/test/Rewriter/missing-dllimport.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-pc-win32 -verify %s
2f4a2713aSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // Do not report that 'foo()' is redeclared without dllimport attribute.
4f4a2713aSLionel Sambuc // specified.  Addresses <rdar://problem/7653912>.
5f4a2713aSLionel Sambuc 
6*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
7f4a2713aSLionel Sambuc __declspec(dllimport) int __cdecl foo(void);
foo()8f4a2713aSLionel Sambuc inline int __cdecl foo() { return 0; }
9