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

23 lines
637 B
Objective-C

// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck %s -check-prefix=X86
// RUN: %clang_cc1 -fblocks -triple arm-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM
// RUN: %clang_cc1 -fblocks -triple arm64-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM64
// <rdar://problem/9757015>: Don't use 'stret' variants on ARM64.
// X86: @main
// X86: @objc_msgSend_stret
// ARM: @main
// ARM: @objc_msgSend_stret
// ARM64: @main
// ARM64-NOT: @objc_msgSend_stret
struct st { int i[1000]; };
@interface Test
+(struct st)method;
@end
int main(void) {
[Test method];
}