summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/avr/pr65210.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/avr/pr65210.c')
-rw-r--r--gcc/testsuite/gcc.target/avr/pr65210.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/avr/pr65210.c b/gcc/testsuite/gcc.target/avr/pr65210.c
new file mode 100644
index 00000000000..1aed4417c1f
--- /dev/null
+++ b/gcc/testsuite/gcc.target/avr/pr65210.c
@@ -0,0 +1,7 @@
+/* { dg-do compile } */
+
+/* This testcase exposes PR65210. Usage of the io_low attribute
+ causes assertion failure because code only looks for the io
+ attribute if SYMBOL_FLAG_IO is set. */
+
+volatile char q __attribute__((io_low,address(0x81)));