diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:02:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:02:28 +0000 |
commit | 7442d6faa2719e4e7d33a7021c406c5a4facd74d (patch) | |
tree | c72b9241553fc9966179aba84f90f17bfa9235c3 /test/CodeGen/avr-unsupported-inline-asm-constraints.c | |
parent | b52119637f743680a99710ce5fdb6646da2772af (diff) |
Notes
Diffstat (limited to 'test/CodeGen/avr-unsupported-inline-asm-constraints.c')
-rw-r--r-- | test/CodeGen/avr-unsupported-inline-asm-constraints.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/avr-unsupported-inline-asm-constraints.c b/test/CodeGen/avr-unsupported-inline-asm-constraints.c new file mode 100644 index 0000000000000..5a875979a9835 --- /dev/null +++ b/test/CodeGen/avr-unsupported-inline-asm-constraints.c @@ -0,0 +1,8 @@ +// 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}} +} |