
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 eleventh batch of tests being updated (there are a significant number of other tests left to be updated).
22 lines
1014 B
C
22 lines
1014 B
C
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm < %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple arm64-unknown-unknown -emit-llvm < %s | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -triple aarch64-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -triple thumbv7-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// Check that the preserve_most calling convention attribute at the source level
|
|
// is lowered to the corresponding calling convention attrribute at the LLVM IR
|
|
// level.
|
|
void foo(void) __attribute__((preserve_most)) {
|
|
// CHECK-LABEL: define {{(dso_local )?}}preserve_mostcc void @foo()
|
|
}
|
|
|
|
// Check that the preserve_most calling convention attribute at the source level
|
|
// is lowered to the corresponding calling convention attrribute at the LLVM IR
|
|
// level.
|
|
void boo(void) __attribute__((preserve_all)) {
|
|
// CHECK-LABEL: define {{(dso_local )?}}preserve_allcc void @boo()
|
|
}
|
|
|