llvm-capstone/clang/test/CodeGen/thinlto-inline-asm.c
Aaron Ballman 46b0d0eef9 Use functions with prototypes when appropriate; NFC
A significant number of our tests in C accidentally use functions
without prototypes. This patch converts the function signatures to have
a prototype for the situations where the test is not specific to K&R C
declarations. e.g.,

  void func();

becomes

  void func(void);

This is the twelfth batch of tests being updated (the end may be in
sight soon though).
2022-02-16 16:10:37 -05:00

22 lines
634 B
C

// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc19.11.0 -emit-llvm-bc \
// RUN: -flto=thin -mllvm -x86-asm-syntax=intel -v \
// RUN: -o %t.obj %s 2>&1 | FileCheck --check-prefix=CLANG %s
//
// RUN: llvm-lto2 dump-symtab %t.obj | FileCheck --check-prefix=SYMTAB %s
// Module-level inline asm is parsed with At&t syntax. Test that the
// -x86-asm-syntax flag does not affect this.
// CLANG-NOT: unknown token in expression
// SYMTAB: D------X foo
// SYMTAB: D------X bar
void foo(void) {}
asm(".globl bar \n"
"bar: \n"
" xor %eax, %eax\n"
" ret \n");