llvm-for-llvmta/tools/clang/test/CodeGen/SystemZ/builtins-systemz-error.c

10 lines
348 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// REQUIRES: systemz-registered-target
// RUN: %clang_cc1 -target-cpu zEC12 -triple s390x-unknown-unknown \
// RUN: -Wall -Wno-unused -Werror -fsyntax-only -verify %s
void test1(void) {
__builtin_tabort (0); // expected-error {{invalid transaction abort code}}
__builtin_tabort (255); // expected-error {{invalid transaction abort code}}
}