From 7442d6faa2719e4e7d33a7021c406c5a4facd74d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 16 Apr 2017 16:02:28 +0000 Subject: Vendor import of clang trunk r300422: https://llvm.org/svn/llvm-project/cfe/trunk@300422 --- test/CodeGen/avr/attributes/interrupt.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/avr/attributes/interrupt.c (limited to 'test/CodeGen/avr/attributes/interrupt.c') 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.*}}} -- cgit v1.2.3