Sign in
llvm
/
llvm-project
/
8dec0b23da116e1cf0cd49c955ff1fadf52d5096
/
.
/
clang
/
test
/
CodeGen
/
avr-flash.c
blob: 99648137d0f184f04df2d163b719ae1e3930438d [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -triple avr -emit-llvm-only -verify %s
int
foo
(
void
)
{
static
__flash
int
b
[]
=
{
4
,
6
};
// expected-error {{qualifier 'const' is needed for variables in address space '__flash'}}
return
b
[
0
];
}