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 -cfguard-no-checks -emit-llvm %s -o - | FileCheck %s -check-prefix=CFGUARDNOCHECKS
|
|
// RUN: %clang_cc1 -cfguard -emit-llvm %s -o - | FileCheck %s -check-prefix=CFGUARD
|
|
// RUN: %clang_cc1 -ehcontguard -emit-llvm %s -o - | FileCheck %s -check-prefix=EHCONTGUARD
|
|
|
|
void f(void) {}
|
|
|
|
// Check that the cfguard metadata flag gets correctly set on the module.
|
|
// CFGUARDNOCHECKS: !"cfguard", i32 1}
|
|
// CFGUARD: !"cfguard", i32 2}
|
|
// EHCONTGUARD: !"ehcontguard", i32 1}
|