summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/attr-msp430.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/attr-msp430.c')
-rw-r--r--clang/test/CodeGen/attr-msp430.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/attr-msp430.c b/clang/test/CodeGen/attr-msp430.c
new file mode 100644
index 00000000000..e8b6d0d0fa3
--- /dev/null
+++ b/clang/test/CodeGen/attr-msp430.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-llvm < %s| FileCheck %s
+
+__attribute__((interrupt(1))) void foo(void) {}
+// CHECK: @llvm.used
+// CHECK-SAME: @foo
+
+// CHECK: define msp430_intrcc void @foo() #0
+// CHECK: attributes #0
+// CHECK-SAME: noinline
+// CHECK-SAME: "interrupt"="1"
OpenPOWER on IntegriCloud