mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 19:26:06 +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);
13 lines
276 B
Common Lisp
13 lines
276 B
Common Lisp
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
|
|
// expected-no-diagnostics
|
|
|
|
typedef __attribute__((ext_vector_type(2))) unsigned int uint2;
|
|
typedef __attribute__((ext_vector_type(2))) int int2;
|
|
|
|
void unsignedCompareOps(void)
|
|
{
|
|
uint2 A, B;
|
|
int2 result = A != B;
|
|
}
|
|
|