mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +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 tenth batch of tests being updated (there are a significant number of other tests left to be updated).
11 lines
418 B
C++
11 lines
418 B
C++
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefixes=CHECK,CONVFUNC %s
|
|
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefixes=CHECK,NOCONVFUNC %s
|
|
|
|
// Test that the -fconvergent-functions flag works
|
|
|
|
// CHECK: attributes #0 = {
|
|
// NOCONVFUNC-NOT: convergent
|
|
// CONVFUNC-SAME: convergent
|
|
// CHECK-SAME: }
|
|
void func(void) { }
|