mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 03:56:08 +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 twelfth batch of tests being updated (the end may be in sight soon though).
10 lines
322 B
C
10 lines
322 B
C
// RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -o - -target-feature -sse2
|
|
|
|
// Verify that negative features don't cause additional requirements on the inline function.
|
|
int __attribute__((target("sse"), always_inline)) foo(int a) {
|
|
return a + 4;
|
|
}
|
|
int bar(void) {
|
|
return foo(4); // expected-no-diagnostics
|
|
}
|