16 lines
560 B
C
16 lines
560 B
C
// RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding -triple x86_64-linux-pc %s
|
|
|
|
// expected-error@+1 3 {{unknown type name '__bfloat16'}}
|
|
__bfloat16 foo(__bfloat16 a, __bfloat16 b) {
|
|
return a + b;
|
|
}
|
|
|
|
#include <immintrin.h>
|
|
|
|
// expected-error@+4 {{invalid operands to binary expression ('__bfloat16' (aka '__bf16') and '__bfloat16')}}
|
|
// expected-warning@+2 3 {{'__bfloat16' is deprecated: use __bf16 instead}}
|
|
// expected-note@* 3 {{'__bfloat16' has been explicitly marked deprecated here}}
|
|
__bfloat16 bar(__bfloat16 a, __bfloat16 b) {
|
|
return a + b;
|
|
}
|