Files
clang-p2996/clang/test/CodeGen/avr-flash.c
Ben Shi 4f173c0c42 [clang][AVR] Support variable decorator '__flash'
Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D96853
2021-04-10 11:23:55 +08:00

7 lines
218 B
C

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