Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / clang / test / CodeGen / PowerPC / inline-asm-constraints-error.c
blob2f35e52fc0b77c2bc99f5be03b1170c618e00af2
1 // RUN: %clang_cc1 -emit-llvm-only -triple powerpc64-ibm-aix-xcoff -verify %s
2 // RUN: %clang_cc1 -emit-llvm-only -triple powerpc-ibm-aix-xcoff -verify %s
3 // This test case exist to test marking the 'a' inline assembly constraint as
4 // unsupported because powerpc previously marked it as supported.
5 int foo(int arg){
6 asm goto ("bc 12,2,%l[TEST_LABEL]" : : "a"(&&TEST_LABEL) : : TEST_LABEL); //expected-error {{invalid input constraint 'a' in asm}}
7 return 0;
8 TEST_LABEL: return arg + 1;