Aaron Ballman | 674cf26 | 2015-05-26 19:44:52 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -verify %s |
Ted Kremenek | a3cfc4d | 2010-02-21 05:12:53 +0000 | [diff] [blame] | 2 | |
Hans Wennborg | f436b28 | 2014-05-22 15:46:15 +0000 | [diff] [blame] | 3 | // Do not report that 'foo()' is redeclared without dllimport attribute. |
Ted Kremenek | a3cfc4d | 2010-02-21 05:12:53 +0000 | [diff] [blame] | 4 | // specified. Addresses <rdar://problem/7653912>. |
| 5 | |
Hans Wennborg | f436b28 | 2014-05-22 15:46:15 +0000 | [diff] [blame] | 6 | // expected-no-diagnostics |
Ted Kremenek | a3cfc4d | 2010-02-21 05:12:53 +0000 | [diff] [blame] | 7 | __declspec(dllimport) int __cdecl foo(void); |
| 8 | inline int __cdecl foo() { return 0; } |