1 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +bf16 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify -verify-ignore-unexpected=error -verify-ignore-unexpected=note %s
3 
4 #include <arm_sve.h>
5 
test_svundef2_bf16()6 svbfloat16x2_t test_svundef2_bf16()
7 {
8   // CHECK-LABEL: test_svundef2_bf16
9   // CHECK: ret <vscale x 16 x bfloat> undef
10   // expected-warning@+1 {{implicit declaration of function 'svundef2_bf16'}}
11   return svundef2_bf16();
12 }
13