[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / SystemZ / systemz-inline-asm-02.c
blob754d7e66f04b241a46f1d9201ee5371ef6589b9b
1 // RUN: not %clang_cc1 -triple s390x-linux-gnu -O2 -emit-llvm -o - %s 2>&1 \
2 // RUN: | FileCheck %s
3 // REQUIRES: systemz-registered-target
5 // Test that an error is given if a physreg is defined by multiple operands.
6 int test_physreg_defs(void) {
7 register int l __asm__("r7") = 0;
9 // CHECK: error: multiple outputs to hard register: r7
10 __asm__("" : "+r"(l), "=r"(l));
12 return l;