Summary: This teaches clang how to parse and lower the 'interrupt' and 'naked' attributes. This allows interrupt signal handlers to be written. Reviewers: aaron.ballman Subscribers: malcolm.parsons, cfe-commits Differential Revision: https://reviews.llvm.org/D28451 llvm-svn: 294402
7 lines
207 B
C
7 lines
207 B
C
// RUN: %clang_cc1 -triple avr-unknown-unknown -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// CHECK: define void @foo() #0
|
|
__attribute__((interrupt)) void foo(void) { }
|
|
|
|
// CHECK: attributes #0 = {{{.*interrupt.*}}}
|