llvm-project/clang/test/CodeGen/builtins-systemz-error.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
348 B
C
Raw Normal View History

2015-04-01 20:54:25 +08: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}}
}