llvm-project/clang/test/CodeGen/avr-flash.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
218 B
C
Raw Normal View History

// 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];
}