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 ninth batch of tests being updated (there are a significant number of other tests left to be updated).
20 lines
622 B
C
20 lines
622 B
C
// RUN: %clang_cc1 -triple=powerpc-ibm-aix-xcoff -S -emit-llvm < %s | \
|
|
// RUN: FileCheck --check-prefix=32BIT %s
|
|
|
|
// RUN: %clang_cc1 -triple=powerpc64-ibm-aix-xcoff -S -emit-llvm < %s | \
|
|
// RUN: FileCheck --check-prefix=64BIT %s
|
|
|
|
typedef __SIZE_TYPE__ size_t;
|
|
extern void *alloca(size_t __size) __attribute__((__nothrow__));
|
|
|
|
void foo(void) {
|
|
char *ptr1 = (char *)alloca(sizeof(char) * 9);
|
|
char *ptr2 = (char *)alloca(sizeof(char) * 32);
|
|
}
|
|
|
|
// 32BIT: %0 = alloca i8, i32 9, align 16
|
|
// 32BIT: %1 = alloca i8, i32 32, align 16
|
|
|
|
// 64BIT: %0 = alloca i8, i64 9, align 16
|
|
// 64BIT: %1 = alloca i8, i64 32, align 16
|