summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/attr-msp430.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/attr-msp430.c')
-rw-r--r--test/CodeGen/attr-msp430.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/attr-msp430.c b/test/CodeGen/attr-msp430.c
new file mode 100644
index 0000000000..e8b6d0d0fa
--- /dev/null
+++ b/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"