20 lines · cpp
1// RUN: %clang_cc1 -triple aarch64 -fsyntax-only -verify=silence %s2// RUN: %clang_cc1 -triple aarch64_be -fsyntax-only -verify=silence %s3// RUN: %clang_cc1 -triple i386 -fsyntax-only -verify=silence %s4// RUN: %clang_cc1 -triple x86_64 -fsyntax-only -verify=silence %s5// RUN: %clang_cc1 -triple loongarch32 -fsyntax-only -verify=silence %s6// RUN: %clang_cc1 -triple loongarch64 -fsyntax-only -verify=silence %s7// RUN: %clang_cc1 -triple riscv32 -fsyntax-only -verify=silence %s8// RUN: %clang_cc1 -triple riscv64 -fsyntax-only -verify=silence %s9// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -fsyntax-only -verify=silence %s10// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -fsyntax-only -verify=silence %s11// RUN: %clang_cc1 -triple ppc64le -fsyntax-only -verify=silence %s12// RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -fsyntax-only -verify=AIX %s13// RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -fsyntax-only -verify=AIX %s14 15// silence-no-diagnostics16 17// AIX-error@+2 {{'gnu::patchable_function_entry' attribute is not yet supported on AIX}}18// expected-warning@+1 {{unknown attribute 'gnu::patchable_function_entry' ignored}}19[[gnu::patchable_function_entry(0)]] void f();20