summaryrefslogtreecommitdiff
path: root/test/CodeGen/avr/attributes/interrupt.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/avr/attributes/interrupt.c')
-rw-r--r--test/CodeGen/avr/attributes/interrupt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/avr/attributes/interrupt.c b/test/CodeGen/avr/attributes/interrupt.c
new file mode 100644
index 0000000000000..31b7ebb4f03d6
--- /dev/null
+++ b/test/CodeGen/avr/attributes/interrupt.c
@@ -0,0 +1,6 @@
+// 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.*}}}