
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
264 B
C
16 lines
264 B
C
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -fno-inline -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// CHECK-NOT: foo
|
|
|
|
void bar(void) {
|
|
}
|
|
|
|
inline void __attribute__((__always_inline__)) foo(void) {
|
|
bar();
|
|
}
|
|
|
|
void i_want_bar(void) {
|
|
foo();
|
|
}
|