mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

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 tenth batch of tests being updated (there are a significant number of other tests left to be updated).
16 lines
478 B
C
16 lines
478 B
C
// REQUIRES: x86-registered-target
|
|
/// Check asm because we use llvm::TargetOptions.
|
|
|
|
// RUN: %clang_cc1 -triple=x86_64 -S %s -falign-loops=8 -O -o - | FileCheck %s --check-prefixes=CHECK,CHECK_8
|
|
// RUN: %clang_cc1 -triple=x86_64 -S %s -falign-loops=32 -O -o - | FileCheck %s --check-prefixes=CHECK,CHECK_32
|
|
|
|
// CHECK-LABEL: foo:
|
|
// CHECK_8: .p2align 3, 0x90
|
|
// CHECK_32: .p2align 5, 0x90
|
|
|
|
void bar(void);
|
|
void foo(void) {
|
|
for (int i = 0; i < 64; ++i)
|
|
bar();
|
|
}
|