The -fallow-half-arguments-and-returns option was removed in 59528e4bdb27ed4ab3, replaced with an always-on target option under AArch64/Arm. There are two tests - fp16-sema.c and renderscripts.rs that test that an error is produced for __fp16 function args/returns, which are now expected to pass for Arm/AArch64. i.e they no longer give the same error as before on native Arm/AArch64 machines. Alter the targets of those tests to compensate.
26 lines
812 B
Rust
26 lines
812 B
Rust
// RUN: %clang_cc1 -fsyntax-only -verify -x renderscript -D__RENDERSCRIPT__ %s
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify -x c %s
|
|
// REQUIRES: x86-registered-target
|
|
|
|
#ifndef __RENDERSCRIPT__
|
|
// expected-warning@+2 {{'kernel' attribute ignored}}
|
|
#endif
|
|
void __attribute__((kernel)) kernel(void) {}
|
|
|
|
#ifndef __RENDERSCRIPT__
|
|
// expected-warning@+4 {{'kernel' attribute ignored}}
|
|
#else
|
|
// expected-warning@+2 {{'kernel' attribute only applies to functions}}
|
|
#endif
|
|
int __attribute__((kernel)) global;
|
|
|
|
#ifndef __RENDERSCRIPT__
|
|
// expected-error@+2 {{function return value cannot have __fp16 type; did you forget * ?}}
|
|
#endif
|
|
__fp16 fp16_return(void);
|
|
|
|
#ifndef __RENDERSCRIPT__
|
|
// expected-error@+2 {{parameters cannot have __fp16 type; did you forget * ?}}
|
|
#endif
|
|
void fp16_arg(__fp16 p);
|