llvm-for-llvmta/tools/clang/test/CodeGen/avr-unsupported-inline-asm-constraints.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

9 lines
317 B
C

// RUN: %clang_cc1 -triple avr-unknown-unknown -verify %s
const unsigned char val = 0;
int foo() {
__asm__ volatile("foo %0, 1" : : "fo" (val)); // expected-error {{invalid input constraint 'fo' in asm}}
__asm__ volatile("foo %0, 1" : : "Nd" (val)); // expected-error {{invalid input constraint 'Nd' in asm}}
}