mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 11:06:06 +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 twelfth batch of tests being updated (the end may be in sight soon though).
16 lines
636 B
Objective-C
16 lines
636 B
Objective-C
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fencode-extended-block-signature -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-BRIEF
|
|
// rdar://12109031
|
|
|
|
@class NSString, NSArray;
|
|
|
|
typedef NSString*(^BBB)(NSArray*);
|
|
|
|
int main (void)
|
|
{
|
|
BBB b1;
|
|
^(BBB arg1, double arg2){ return b1; }(0, 3.14);
|
|
}
|
|
// CHECK: @{{.*}} = private unnamed_addr constant [64 x i8] c"@?<@\22NSString\22@?@\22NSArray\22>24@?0@?<@\22NSString\22@?@\22NSArray\22>8d16\00"
|
|
// CHECK-BRIEF: @{{.*}} = private unnamed_addr constant [14 x i8] c"@?24@?0@?8d16\00"
|