llvm-project/clang/test/Sema/aarch64-tme-errors.c
Fangrui Song 9df71899bd [test] Replace aarch64-*-{eabi,gnueabi} with aarch64
Similar to d39b4ce3ce8a3c256e01bdec2b140777a332a633
Using "eabi" or "gnueabi" for aarch64 targets is a common mistake and
warned by Clang Driver. We want to avoid them elsewhere as well. Just
use the common "aarch64" without other triple components.
2024-02-12 15:00:45 -08:00

9 lines
335 B
C

// RUN: %clang_cc1 -triple aarch64 -verify %s
#include "arm_acle.h"
void test_no_tme_funcs(void) {
__tstart(); // expected-error{{call to undeclared function '__tstart'; ISO C99 and later do not support implicit function declarations}}
__builtin_tstart(); // expected-error{{use of unknown builtin '__builtin_tstart'}}
}