[PATCH] D32092: Attribute inline

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 14 12:06:16 PDT 2017


aaron.ballman added a comment.

In https://reviews.llvm.org/D32092#727507, @zahiraam wrote:

> ksh-3.2$ cat test3.c
>  static void __declspec(inline) foo() {
>  }
>
> int main()
>  {
>
>   foo();
>
> }
>
> ksh-3.2$ cl test3.c
>  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
>  Copyright (C) Microsoft Corporation.  All rights reserved.
>
> test3.c
>  Microsoft (R) Incremental Linker Version 14.00.24215.1
>  Copyright (C) Microsoft Corporation.  All rights reserved.
>
> /out:test3.exe
>  test3.obj
>  ksh-3.2$
>
> This is for an application that we are running here that is failing.


I just tested this on 19.10.25017, 19.10.25206.0 and 14.0.25431.01 and none of them accept your code.

https://godbolt.org/g/xk1ciG


https://reviews.llvm.org/D32092





More information about the cfe-commits mailing list