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