Mercurial > hg > CbC > CbC_llvm
diff clang/test/CodeGen/ms-inline-asm-functions.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- a/clang/test/CodeGen/ms-inline-asm-functions.c Wed Jul 21 10:27:27 2021 +0900 +++ b/clang/test/CodeGen/ms-inline-asm-functions.c Wed Nov 09 17:45:10 2022 +0900 @@ -8,9 +8,9 @@ int k(int); __declspec(dllimport) int kimport(int); int (*kptr)(int); -int (*gptr())(int); +int (*gptr(void))(int); -int foo() { +int foo(void) { // CHECK-LABEL: _foo: int (*r)(int) = gptr(); @@ -30,13 +30,13 @@ // CHECK-FIXME: calll *_kptr } -int bar() { +int bar(void) { // CHECK-LABEL: _bar: __asm jmp k; // CHECK: jmp _k } -int baz() { +int baz(void) { // CHECK-LABEL: _baz: __asm mov eax, k; // CHECK: movl _k, %eax @@ -47,7 +47,7 @@ // Test that this asm blob doesn't require more registers than available. This // has to be an LLVM code generation test. -void __declspec(naked) naked() { +void __declspec(naked) naked(void) { __asm pusha __asm call k __asm popa