
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).
11 lines
479 B
C
11 lines
479 B
C
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - -gpubnames | FileCheck --check-prefix=DEFAULT %s
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - -ggnu-pubnames | FileCheck --check-prefix=GNU %s
|
|
|
|
// CHECK: !DICompileUnit({{.*}}, nameTableKind: None
|
|
// DEFAULT-NOT: !DICompileUnit({{.*}}, nameTableKind:
|
|
// GNU: !DICompileUnit({{.*}}, nameTableKind: GNU
|
|
|
|
void f1(void) {
|
|
}
|